bug fixed for testcase.

This commit is contained in:
wenshao
2017-05-11 06:29:37 +08:00
parent 8d46cfa718
commit 965ba2f0a1
@@ -145,7 +145,10 @@ public final class DruidConnectionHolder {
this.underlyingTransactionIsolation = conn.getTransactionIsolation();
} catch (SQLException e) {
// compartible for alibaba corba
if (!"HY000".equals(e.getSQLState())) {
if ("HY000".equals(e.getSQLState())
|| "com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException".equals(e.getClass().getName())) {
// skip
} else {
throw e;
}
}