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:
Catalina Wei 2008-05-14 06:18:18 +00:00
parent 4ac794ee69
commit 956065baa0
1 changed files with 2 additions and 1 deletions

View File

@ -247,7 +247,8 @@ public class BatchingPreparedStatementManagerImpl extends
row.getSQL(_dict)).getMessage()); row.getSQL(_dict)).getMessage());
break; break;
case Statement.SUCCESS_NO_INFO: // -2 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)); _exceptions.add(new OptimisticException(failed));
else if (_log.isTraceEnabled()) else if (_log.isTraceEnabled())
_log.trace(_loc.get("batch_update_info", _log.trace(_loc.get("batch_update_info",