Repository: trafodion
Updated Branches:
  refs/heads/master 622e67bef -> 0edae9410


TRAFODION-2922 fix return incorrect affect row count


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

Branch: refs/heads/master
Commit: 53cacb8d98df64fb715c57cd75d09aedd2dae2e2
Parents: f06ea68
Author: Li Ze <ze...@esgyn.cn>
Authored: Mon Jan 22 17:00:13 2018 +0800
Committer: Li Ze <ze...@esgyn.cn>
Committed: Mon Jan 22 17:00:13 2018 +0800

----------------------------------------------------------------------
 .../src/main/java/org/trafodion/jdbc/t4/TrafT4Statement.java      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/53cacb8d/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/TrafT4Statement.java
----------------------------------------------------------------------
diff --git 
a/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/TrafT4Statement.java 
b/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/TrafT4Statement.java
index e5e4962..cda76d6 100644
--- a/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/TrafT4Statement.java
+++ b/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/TrafT4Statement.java
@@ -354,7 +354,6 @@ public class TrafT4Statement extends TrafT4Handle 
implements java.sql.Statement
                                {};
                        }
 
-                       batchRowCount_ = new int[batchCommands_.size()];
                        for (i = 0; i < batchCommands_.size(); i++) {
                                String sql = (String) batchCommands_.get(i);
 
@@ -397,7 +396,7 @@ public class TrafT4Statement extends TrafT4Handle 
implements java.sql.Statement
 
                                        checkSQLWarningAndClose();
 
-                                       batchRowCount[i] = batchRowCount_[0]; 
// the member will
+                                       batchRowCount[i] = 
(int)ist_.getRowCount(); // the member will
                                        // be set by
                                        // execute...keep
                                        // them in our local

Reply via email to