mirror of https://github.com/apache/openjpa.git
OPENJPA-1616 add comment
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@932027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e16c823464
commit
c6e4e39fe4
|
@ -426,6 +426,7 @@ public class MySQLDictionary
|
|||
@Override
|
||||
protected int matchErrorState(Map<Integer,Set<String>> errorStates, SQLException ex) {
|
||||
int state = super.matchErrorState(errorStates, ex);
|
||||
// OPENJPA-1616 - Special case for MySQL not returning a SQLState for timeouts
|
||||
if (state == StoreException.GENERAL && ex.getErrorCode() == 0 && ex.getSQLState() == null) {
|
||||
// look at the nested MySQL exception for more details
|
||||
SQLException sqle = ex.getNextException();
|
||||
|
|
Loading…
Reference in New Issue