mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add testcase & bug fixed for DruidConnectionHolderInitError
This commit is contained in:
@@ -70,8 +70,9 @@ public final class DruidConnectionHolder {
|
||||
try {
|
||||
this.underlyingTransactionIsolation = conn.getTransactionIsolation();
|
||||
} catch (SQLException e) {
|
||||
if ("com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException".equals(e.getClass().getName()))
|
||||
;
|
||||
if (!"com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException".equals(e.getClass().getName())) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
this.defaultHoldability = underlyingHoldability;
|
||||
|
||||
Reference in New Issue
Block a user