add double check for mysql testWhileIdle.

This commit is contained in:
wenshao
2017-11-01 12:24:22 +08:00
parent d1189cefe6
commit 616ec0d431
5 changed files with 173 additions and 35 deletions
@@ -236,6 +236,8 @@ public class DruidPooledPreparedStatement extends DruidPooledStatement implement
return poolableResultSet;
} catch (Throwable t) {
errorCheck(t);
throw checkException(t);
} finally {
conn.afterExecute();
@@ -253,6 +255,8 @@ public class DruidPooledPreparedStatement extends DruidPooledStatement implement
try {
return stmt.executeUpdate();
} catch (Throwable t) {
errorCheck(t);
throw checkException(t);
} finally {
conn.afterExecute();
@@ -493,6 +497,8 @@ public class DruidPooledPreparedStatement extends DruidPooledStatement implement
try {
return stmt.execute();
} catch (Throwable t) {
errorCheck(t);
throw checkException(t);
} finally {
conn.afterExecute();
@@ -559,6 +565,8 @@ public class DruidPooledPreparedStatement extends DruidPooledStatement implement
try {
return stmt.executeBatch();
} catch (Throwable t) {
errorCheck(t);
throw checkException(t);
} finally {
conn.afterExecute();