lunarmodules / luasql

LuaSQL is a simple interface from Lua to a DBMS.
http://lunarmodules.github.io/luasql
539 stars 191 forks source link

Compatibility with lua 5.3: Handling integers #29

Open javiersgithub opened 9 years ago

javiersgithub commented 9 years ago

Hi,

I have been using luasql successfully in Lua 5.1 using the ODBC connector. However I have recently upgraded Lua version to 5.3 which supports integers and changes the stringification of numbers (as stated in the lua docs not strictly a backwards incompatibility due to the lack of definition) but lua sql is pushing them into Lua all as numbers, without making distinction between integers and floats.

From DB I read integers and I would like to treat them as such in Lua; now I work around it by doing a math.modf afters getting the result set; how ever if the driver did it, it would be much better.

Regards.