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:
Pinaki Poddar 2010-03-16 16:47:15 +00:00
parent 6d87bbdbb0
commit f3b00d7801
1 changed files with 2 additions and 0 deletions

View File

@ -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;