trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbirds...@apache.org
Subject [2/3] incubator-trafodion git commit: bigint length correct for windows
Date Thu, 17 Aug 2017 16:59:19 GMT
bigint length correct for windows


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/6a170de7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/6a170de7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/6a170de7

Branch: refs/heads/master
Commit: 6a170de7bdd7a96dfc056b59855c620a938c6374
Parents: c3d5fec
Author: Weixin-Xu <weixin.xu@esgyn.cn>
Authored: Thu Aug 3 15:54:11 2017 +0800
Committer: Weixin-Xu <weixin.xu@esgyn.cn>
Committed: Thu Aug 3 15:54:11 2017 +0800

----------------------------------------------------------------------
 win-odbc64/odbcclient/drvr35/sqltocconv.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/6a170de7/win-odbc64/odbcclient/drvr35/sqltocconv.cpp
----------------------------------------------------------------------
diff --git a/win-odbc64/odbcclient/drvr35/sqltocconv.cpp b/win-odbc64/odbcclient/drvr35/sqltocconv.cpp
index 37922c0..5c510c4 100644
--- a/win-odbc64/odbcclient/drvr35/sqltocconv.cpp
+++ b/win-odbc64/odbcclient/drvr35/sqltocconv.cpp
@@ -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;


Mime
View raw message