Bug #24815 SQLFetch gets wrong results in bound columns
Submitted: 5 Dec 2006 11:20 Modified: 8 Mar 2007 2:08
Reporter: Bogdan Degtyariov Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / ODBC Severity:S1 (Critical)
Version:64-bit versions OS:IBM AIX (AIX 5.2, HP-UX 11.11/11.23)
Assigned to: Bogdan Degtyariov CPU Architecture:Any
Tags: AIX, HP-UX, ODBC5-RC, SQLBindCol, SQLFetch

[5 Dec 2006 11:20] Bogdan Degtyariov
Description:
64-bit applications in AIX 5.2, HP-UX 11.11 and 11.23 do not get correct values of the columns bound using SQLBindCol. This does not happen in 64-bit Linux systems such as SuSE Linux Enterprise Server 9 and Red Hat Enterprise Linux 4.

How to repeat:
Run the attached test case.

Suggested fix:
Check for possible conflicts between 32 bit and 64 bit integer variables.
[5 Dec 2006 11:20] Bogdan Degtyariov
Test case

Attachment: TestPrepared64.cpp (text/x-c++), 5.42 KiB.

[7 Dec 2006 19:13] Bogdan Degtyariov
Test case with SQLBIGINT bound

Attachment: TestPrepared64_v2.cpp (text/x-c++), 5.42 KiB.

[20 Dec 2006 20:33] Bogdan Degtyariov
The proper patch has been committed to the source repository
Revision 144
[8 Mar 2007 2:08] Jim Winstead
This is fixed in the upcoming 3.51.14.