pm.newQuery(MTableColumnStatistics.class, "dbName == ''").execute();
pm.newQuery(MPartitionColumnStatistics.class, "dbName == ''").execute();
} catch (Exception ex) {
isCompatibleDatastore = false;
LOG.error("Database initialization failed; direct SQL is disabled", ex);
tx.rollback();
}
if (isCompatibleDatastore) {
// Self-test query. If it doesn't work, we will self-disable. What a PITA...
String selfTestQuery = "select \"DB_ID\" from \"DBS\"";
try {