lunarmodules / luasql

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

odbc getting abort when selecting sql server time datatype #149

Open greenbea opened 2 years ago

greenbea commented 2 years ago

When selecting time datatype column from sql server the program crashes with a SIGABRT. In my core dump file, I see it's caused by the assert call at https://github.com/lunarmodules/luasql/blob/master/src/ls_odbc.c#L317

The value passed to sqltypetolua has a value of -154