openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fayw...@apache.org
Subject svn commit: r711404 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
Date Tue, 04 Nov 2008 21:03:57 GMT
Author: faywang
Date: Tue Nov  4 13:03:56 2008
New Revision: 711404

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

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java?rev=711404&r1=711403&r2=711404&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java
Tue Nov  4 13:03:56 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",



Mime
View raw message