mirror of https://github.com/apache/openjpa.git
OPENJPA-574 fix checkUpdateCount of (-2 SSUCCESS_NO_INFO) for Batching inserts in Oracle and DB2/ZOS.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@656114 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4ac794ee69
commit
956065baa0
|
@ -247,7 +247,8 @@ public class BatchingPreparedStatementManagerImpl extends
|
|||
row.getSQL(_dict)).getMessage());
|
||||
break;
|
||||
case Statement.SUCCESS_NO_INFO: // -2
|
||||
if (failed != null || row.getAction() == Row.ACTION_UPDATE)
|
||||
if (row.getAction() == Row.ACTION_UPDATE ||
|
||||
row.getAction() == Row.ACTION_DELETE)
|
||||
_exceptions.add(new OptimisticException(failed));
|
||||
else if (_log.isTraceEnabled())
|
||||
_log.trace(_loc.get("batch_update_info",
|
||||
|
|
Loading…
Reference in New Issue