代码重构

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@319 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-06-29 10:28:47 +00:00
parent 9f5b897b36
commit 5c5d816021
2 changed files with 3 additions and 3 deletions
@@ -46,7 +46,7 @@ public class MySqlValidConnectionChecker implements ValidConnectionChecker, Seri
// if there is a ping method then use it, otherwise just use a 'SELECT 1' statement
if (conn != null && driverHasPingMethod) {
try {
ping.invoke(c);
ping.invoke(conn);
return true;
} catch (Exception e) {
LOG.warn("Unexpected error in ping", e);