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.
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.