Commit e12b6d30 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/openfire_3_5_1@10191 b35dd754-fafc-0310-a699-88a17e54d16e
parent bf36124c
......@@ -817,7 +817,10 @@ public class DbConnectionManager {
}
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";
}
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