mirror of https://github.com/apache/openjpa.git
OPENJPA-1565: Raise correct Query/LockTimeout exception
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6d87bbdbb0
commit
f3b00d7801
|
@ -926,6 +926,8 @@ public class DB2Dictionary
|
|||
protected boolean isFatalException(int subtype, SQLException ex) {
|
||||
String errorState = ex.getSQLState();
|
||||
int errorCode = ex.getErrorCode();
|
||||
if (errorCode == -952 && "57014".equals(errorState))
|
||||
return false;
|
||||
if (subtype == StoreException.LOCK && "57033".equals(errorState)
|
||||
&& ex.getMessage().indexOf("80") != -1) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue