-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
odbc can not receive data from mssql , after win10 update #148
Comments
I compile luasql in mysys2 mingw32, should I use visual studio ??? |
I replace float by varchar(20) in database, the luasql can work properly |
SQLcmd = "select Week from Production_2011 where Production_LOTNO = '20221123N7E'" luaopen_luasql_odbc()...
Anyone can help meeeeeeeeeeeee ! |
Use float instead of double, that too small ! /* deal with data according to type /
|
Hi lingbl I don't have a Windows machine nor the SQL Server to test it, sorry. I didn't understand why you replaced a double by a float -- or did I misunderstood you attempt above? A double is bigger than a float... Did you try to print out the value of variable 'tname'? Maybe there is another type not foreseen... Regards, |
the luasql can get data "Week" correctly , when use SQL_C_FLOAT , by the way this is not my idea The data "Week" store in MSSQL as "float" type . The bug is: all "float" type data in MSSQL can not recieve by luasql. |
Hi lingbl This problem with float X double does not seem to be a bug in LuaSQL, but in MSSQL, don't you agree? The documentation assure all C types must be supported: https://learn.microsoft.com/en-us/sql/odbc/reference/appendixes/c-data-types?view=sql-server-ver16 Anyway, it is obvious that we can change the type of variable num from double to float, but will that change produce other incompatibilities? Regards, |
Thank you Tomás !! , If this is a bug from patch, I will wait next patch to fix it. |
Install microsoft odbc driver , and reset DSN. |
We are experiencing the same issue in production. Will report back if updating the ODBC driver on the client side helps or if another solution (other than rolling back the Windows update) is found. |
As far as I'm concerned, updating the MSSQL ODBC Driver on the client fixes or works around this issue. |
lua 5.1 , luasql 2.6.0 , can not receive data from mssql , when win10 installed patch KB5019959.
win10 version: 19044.2251
no error message
data = cur:fetch({})
i have try to uninstall KB5019959, and luasql work again.
The problem is file c:\windows\SysWOW64\sqlsrv32.dll is updated by patch. when use old version dll file to replace , luasql work again
The text was updated successfully, but these errors were encountered: