| Issue 23: | Issue with 64-bit Linux | |
| 3 people starred this issue and may be notified of changes. | Back to list |
On my 64-bit Kubuntu Linux box I enyounter the following problem: Decimal-values with NULL-value produce an exception when reading. This happens because in src/getdata.cpp, function GetDataDecimal, the variable cbFetched is of type SQLLEN which is 64 bits long. The return value -1 for a NULL value is a 32 bit number, so it is not -1 in 64 bits and the function tries to convert the empty string '' to a decimal which raises an exception. Possible solution to the problem: cbFetched must be of a 32-bit type, regardless of the systems bit size. I am sorry, but I don't know, which type could be the right one for this. Regards, Axel
Mar 18, 2009
Project Member
#1
mkleehammer
Status:
Investigating
Mar 21, 2009
I am using unixODBC 2.2.11-16build2 on Kubuntu 8.10. Regards, Axel
Sep 6, 2010
Can you try this with 2.1.8? Thanks.
Nov 21, 2010
Closing due to inactivity. I think these issues are cleared up in 2.1.8+
Status:
Complete
Mar 31, 2014
This issue is still happening for me; I'm using unixODBC-2.2.11 and latest version of pyodbc. Code to recreate attached; server is running CentOS 5.9.
Apr 1, 2014
Just updated unixODBC to latest version; error still occurs. |