add testcase & bug fixed for DruidConnectionHolderInitError

This commit is contained in:
wenshao
2012-08-28 09:45:27 +08:00
parent 0c47d2a38d
commit 841534ed43
6 changed files with 189 additions and 8 deletions
@@ -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;