Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Commit

Permalink
bigint length correct for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Weixin-Xu committed Aug 3, 2017
1 parent c3d5fec commit 6a170de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions win-odbc64/odbcclient/drvr35/sqltocconv.cpp
Expand Up @@ -539,9 +539,9 @@ unsigned long ODBC::ConvertSQLToC(SQLINTEGER ODBCAppVersion,
break;
case SQL_BIGINT:
if (srcUnsigned)
_snprintf(cTmpBuf, sizeof(__int64), "%I64u", *((unsigned __int64 *)srcDataPtr));
sprintf(cTmpBuf, "%I64u", *((unsigned __int64 *)srcDataPtr));
else
_snprintf(cTmpBuf, sizeof(__int64), "%I64d", *((__int64 *)srcDataPtr));
sprintf(cTmpBuf, "%I64d", *((__int64 *)srcDataPtr));
DataLen = strlen(cTmpBuf);
if (DataLen > targetLength)
return IDS_22_003;
Expand Down

0 comments on commit 6a170de

Please sign in to comment.