trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbirds...@apache.org
Subject [1/2] trafodion git commit: The variable of won't be initialized before a new statement
Date Wed, 26 Sep 2018 20:19:09 GMT
Repository: trafodion
Updated Branches:
  refs/heads/master 78a1a563a -> 9a55a8a3d


The variable of won't be initialized before a new statement


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

Branch: refs/heads/master
Commit: 1f3933eca47ae7769d0360a326a65e8abeae0ad0
Parents: b7384e8
Author: Weixin-Xu <1013438133@qq.com>
Authored: Wed Sep 19 10:35:21 2018 +0800
Committer: Weixin-Xu <1013438133@qq.com>
Committed: Wed Sep 19 10:37:33 2018 +0800

----------------------------------------------------------------------
 win-odbc64/odbcclient/drvr35/cstmt.cpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/1f3933ec/win-odbc64/odbcclient/drvr35/cstmt.cpp
----------------------------------------------------------------------
diff --git a/win-odbc64/odbcclient/drvr35/cstmt.cpp b/win-odbc64/odbcclient/drvr35/cstmt.cpp
index 67c453d..98550f3 100644
--- a/win-odbc64/odbcclient/drvr35/cstmt.cpp
+++ b/win-odbc64/odbcclient/drvr35/cstmt.cpp
@@ -897,6 +897,7 @@ SQLRETURN CStmt::SendSQLCommand(BOOL SkipProcess, SQLCHAR *StatementText,
         setDiagRowCount(-1, -1);
 
         InitParamColumnList();
+        m_NumResultCols = 0;
 
         if (m_StmtState == STMT_EXECUTED)
         {


Mime
View raw message