keplerproject / orbit

Orbit is an MVC web framework for Lua.
http://keplerproject.github.io/orbit/
118 stars 35 forks source link

SQL wrapper doesn't handle the SQLite type "numeric" #3

Closed TheLinx closed 11 years ago

TheLinx commented 14 years ago

I'll make a fix for this right now.

rjpcomputing commented 12 years ago

So I was able to fix this very simply.

Just add

function convert.numeric(v)
  return tonumber(v)
end

to the 'model.lua' file right under the convert.number(v) function

and

function escape.numeric(v)
  return escape.integer(v)
end

right under the escape.number(v) function

Can this be added?

rjpcomputing commented 12 years ago

This issue can now be closed. It was added in Pull Request 8.