Commit fa08d3e1 authored by Daryl Herzmann's avatar Daryl Herzmann Committed by akrherz

OF-73: simplier database check which does not fail if the ofID

       table does not exist. Allows OF < 3.6 to be upgraded.


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11355 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7d6f00cd
......@@ -705,7 +705,7 @@ public class XMPPServer {
java.sql.Connection conn = null;
try {
conn = DbConnectionManager.getConnection();
PreparedStatement stmt = conn.prepareStatement("SELECT count(*) FROM ofID");
PreparedStatement stmt = conn.prepareStatement("SELECT 1");
ResultSet rs = stmt.executeQuery();
rs.next();
rs.close();
......
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