mirror of https://github.com/apache/openjpa.git
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:
parent
cb895a2b25
commit
4f11cba18a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue