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: (ODB)the parameter of SQLGetDiagRec need to be initialized
Date Tue, 13 Nov 2018 21:58:43 GMT
Repository: trafodion
Updated Branches:
  refs/heads/master 571611ae1 -> b4749fcfc


(ODB)the parameter of SQLGetDiagRec need to be initialized


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

Branch: refs/heads/master
Commit: f731e845e45220baef271a3b7aa36cee02631993
Parents: d83b97e
Author: XuWeixin <weixin.xu@esgyn.cn>
Authored: Wed Nov 7 09:53:38 2018 +0000
Committer: XuWeixin <weixin.xu@esgyn.cn>
Committed: Tue Nov 13 05:56:53 2018 +0000

----------------------------------------------------------------------
 core/conn/odb/src/odb.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/f731e845/core/conn/odb/src/odb.c
----------------------------------------------------------------------
diff --git a/core/conn/odb/src/odb.c b/core/conn/odb/src/odb.c
index 1b04a90..053fad7 100755
--- a/core/conn/odb/src/odb.c
+++ b/core/conn/odb/src/odb.c
@@ -10087,6 +10087,7 @@ static int Oloadbuff(int eid)
                 lcr += (unsigned long)etab[eid].Oresl;
             break;
         default:
+            Oi = 1; //the record number need to be initialize for next loop
             /* Loop through the ODBC error stack for this statement handle. */
             while ( ( Or = SQLGetDiagRec(SQL_HANDLE_STMT, thps[tid].Os, Oi, Ostate, &Onative,
Otxt,
                 (SQLSMALLINT)embs, &Oln) ) != SQL_NO_DATA ) {


Mime
View raw message