OPENJPA-1565: Some MySQL drivers return 0 error code for timeout exception

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924651 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2010-03-18 05:54:26 +00:00
parent cb895a2b25
commit 4f11cba18a
1 changed files with 2 additions and 0 deletions

View File

@ -428,6 +428,8 @@ public class MySQLDictionary
||(subtype == StoreException.QUERY && ex.getErrorCode() == 1317)) {
return false;
}
if (ex.getErrorCode() == 0 && ex.getSQLState() == null)
return false;
return super.isFatalException(subtype, ex);
}