mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
代码重构
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@319 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user