modify datasourceSwitchChecker
@@ -33,10 +33,13 @@ public class DataSourceSwitchChecker {
executeSql = MYSQL_SQL;
columnIndex = 2;
}
- else {
+ else if (databaseCategory.equals(DatabaseCategory.SqlServer)) {
executeSql = SQLSERVER_SQL;
columnIndex = 1;
}
+ else {
+ return null;
+ }
Statement stmt = null;
ResultSet rs = null;
long startTime = System.currentTimeMillis();
