bug fixed for ValidConnectionChecker

This commit is contained in:
wenshao
2016-11-25 20:58:26 +08:00
parent fbe54ff217
commit 89093deb75
2 changed files with 5 additions and 1 deletions
@@ -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 {