Commit df428427 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Account for null driver during setup.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches@10191 b35dd754-fafc-0310-a699-88a17e54d16e
parent a6eb6efe
...@@ -817,7 +817,10 @@ public class DbConnectionManager { ...@@ -817,7 +817,10 @@ public class DbConnectionManager {
} }
public static String getTestSQL(String driver) { public static String getTestSQL(String driver) {
if (driver.contains("db2")) { if (driver == null) {
return "select 1";
}
else if (driver.contains("db2")) {
return "select 1 from sysibm.sysdummy1"; return "select 1 from sysibm.sysdummy1";
} }
else if (driver.contains("oracle")) { else if (driver.contains("oracle")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment