You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by fa...@apache.org on 2008/11/04 21:54:16 UTC

svn commit: r711397 - /openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java

Author: faywang
Date: Tue Nov  4 12:54:15 2008
New Revision: 711397

URL: http://svn.apache.org/viewvc?rev=711397&view=rev
Log:
OPENJPA-762: batch execution fails for Oracle 
when batch limit is set to -1.

Modified:
    openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java

Modified: openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java?rev=711397&r1=711396&r2=711397&view=diff
==============================================================================
--- openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java (original)
+++ openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java Tue Nov  4 12:54:15 2008
@@ -1112,7 +1112,7 @@
 
     public int getBatchUpdateCount(PreparedStatement ps) throws SQLException {
         int updateSuccessCnt = 0;
-        if (batchLimit > 0 && ps != null) {
+        if (batchLimit != 0 && ps != null) {
             updateSuccessCnt = ps.getUpdateCount();
             if (log.isTraceEnabled())
                 log.trace(_loc.get("batch-update-success-count",