mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for ValidConnectionChecker
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ public class MySqlValidConnectionChecker extends ValidConnectionCheckerAdapter i
|
||||
}
|
||||
}
|
||||
|
||||
if (validateQuery == null) {
|
||||
if (validateQuery == null || validateQuery.length() == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +70,10 @@ public class OracleValidConnectionChecker extends ValidConnectionCheckerAdapter
|
||||
conn = ((ConnectionProxy) conn).getRawObject();
|
||||
}
|
||||
|
||||
if (validateQuery == null || validateQuery.length() == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Statement stmt = null;
|
||||
ResultSet rs = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user