mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for testcase.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user