public static String getTestSQL(String driver) {
        if (driver == null) {
            return "select 1";
        }
        else if (driver.contains("db2")) {
            return "select 1 from sysibm.sysdummy1";
        }
        else if (driver.contains("oracle")) {
            return "select 1 from dual";
        }
        else {
            return "select 1";
        }
    }
Turns connection profiling on or off. You can collect profiling
statistics by using the static methods of the ProfiledConnection
class.

@param enable true to enable profiling; false to disable.
xmppserver/src/main/java/org/jivesoftware/database/DbConnectionManager.java