mirror of https://github.com/apache/openjpa.git
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:
parent
675ee18565
commit
7e24608f52
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue