I am using luarocks and fetching data from mysql. And have a column with data type as Decimal(12). When we connect to mySQL using luasql library (require "luasql.mysql"), the field type returns as "undefined" and the value fetches in string format "12.34"
P.S: Doesn't want to use typecasting. Anyother way other than converting the every row value to tonumber().
Hi,
I am using luarocks and fetching data from mysql. And have a column with data type as Decimal(12). When we connect to mySQL using luasql library (require "luasql.mysql"), the field type returns as "undefined" and the value fetches in string format "12.34"
P.S: Doesn't want to use typecasting. Anyother way other than converting the every row value to tonumber().
Any help here appreciated.