Problem in SQLRowCount
Nimish Bhargava <[email protected]>
| Newsgroups | gmane.comp.db.unixodbc.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi I am using the odbc library on CentOS 5.2 x86_64. I am facing a problem in SQLRowCount(SQLHSTMT , SQLLEN*) function in DriverManager/SQLRowCount.c. I have build the odbc library and my code with BUILD_LEGACY_64_BIT_MODE flag defined. Hence SQLLEN become "int" according to the definition in sqltypes.h. The problem occurs after the execution of macro DEF_SQLROWCOUNT (line 227). Instead of writing on 4 bytes (int) on rowcount it writes 8 bytes thus corrupting 4 bytes of the stack. Could you please look in this function or let me know if I have made some mistake with the odbc compilation. Thanks and Regards Nimish _______________________________________________ unixODBC-dev mailing list [email protected] http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev