Skip to content

Commit

Permalink
Change dataAtFetch to type SQLLEN
Browse files Browse the repository at this point in the history
Parameter strLenOrIndPtr for SQLBindCol() should be SQLLEN as opposed to SQLUINTEGER; the latter will cause 32bits of garbage data to be  passed to driver under 64-bit mode.
  • Loading branch information
mingjingz committed Jun 1, 2017
1 parent 9c0e9ec commit 4a15b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/odbctest/fhrslt.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ BOOL INTFUN UpdateBoundColumn(lpCONNECTIONINFO lpCI,UWORD icol,SWORD fCType,
//| Returns:
//| The return code from the function
//*---------------------------------------------------------------------------------
static SQLUINTEGER dataAtFetch = SQL_DATA_AT_FETCH;
static SQLLEN dataAtFetch = SQL_DATA_AT_FETCH;
RETCODE INTFUN lpSQLBindCol(STD_FH_PARMS)
{
RETCODE rc;
Expand Down

0 comments on commit 4a15b14

Please sign in to comment.