OPENJPA-762: Batch execution fails for Oracle when batch

limit is set to -1.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@711404 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Fay Wang 2008-11-04 21:03:56 +00:00
parent 675ee18565
commit 7e24608f52
1 changed files with 1 additions and 1 deletions

View File

@ -1112,7 +1112,7 @@ public class OracleDictionary
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",