lunarmodules / luasql

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

[ODBC] char/SQLCHAR casting needed #19

Closed blumf closed 9 years ago

blumf commented 10 years ago

Throughout the ls_odbc.c code there is mixing of char and SQLCHAR types. Not a real problem but will need casting to avoid compile warnings.

vespadj commented 9 years ago

About this, I connect to sql server, the data type is "nvarchar" , lua says "Assertion failed", so for each field I need to use CAST(fieldname AS text). Please consider to insert these common datatypes in ls_odbc.c (lines 160)

http://msdn.microsoft.com/en-en/library/ms187752.aspx

blumf commented 9 years ago

I'm pointing this to #36