mirror of
https://github.com/apache/openjpa.git
synced 2025-02-23 02:48:46 +00:00
OPENJPA-574 DataCache entries not evicted when multiple OptimisticLockExceptions reported from backend DB.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@654631 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3f9dcdbb76
commit
b585833c0c
@ -241,9 +241,9 @@ public class BatchingPreparedStatementManagerImpl extends
|
||||
break;
|
||||
case 0: // no row is inserted, treats it as failed
|
||||
// case
|
||||
if (failed != null || row.getAction() == Row.ACTION_UPDATE)
|
||||
if (failed != null)
|
||||
_exceptions.add(new OptimisticException(failed));
|
||||
else
|
||||
else if (row.getAction() == Row.ACTION_INSERT)
|
||||
throw new SQLException(_loc.get(
|
||||
"update-failed-no-failed-obj",
|
||||
String.valueOf(count[i]), _batchedSql).getMessage());
|
||||
|
Loading…
x
Reference in New Issue
Block a user