// shutdown/drop as clean as possible.
sleep(500L);
Monitor.removePersistentService(dbName);
// Generate the drop database exception here, as this is the
// only place it will be thrown.
StandardException se = StandardException.newException(
SQLState.DROP_DATABASE, dbName);
se.setReport(StandardException.REPORT_NEVER);
throw se;
}
// Raise a warning in sqlAuthorization mode if authentication is not ON
if (usingNoneAuth && getLanguageConnection().usesSqlAuthorization())
addWarning(SQLWarningFactory.newSQLWarning(SQLState.SQL_AUTHORIZATION_WITH_NO_AUTHENTICATION));
InterruptStatus.restoreIntrFlagIfSeen(getLanguageConnection());
}
catch (OutOfMemoryError noMemory)
{
//System.out.println("freeA");
InterruptStatus.restoreIntrFlagIfSeen();
restoreContextStack();
tr.lcc = null;
tr.cm = null;
//System.out.println("free");
//System.out.println(Runtime.getRuntime().freeMemory());
memoryState.setLowMemory();
//noMemory.printStackTrace();
// throw Util.generateCsSQLException(SQLState.LOGIN_FAILED, noMemory.getMessage(), noMemory);
throw NO_MEM;
}
catch (Throwable t) {
InterruptStatus.restoreIntrFlagIfSeen();
if (t instanceof StandardException)
{
StandardException se = (StandardException) t;
if (se.getSeverity() < ExceptionSeverity.SESSION_SEVERITY)
se.setSeverity(ExceptionSeverity.SESSION_SEVERITY);
}
//DERBY-4856, assume database is not up
tr.cleanupOnError(t, false);
throw handleException(t);
} finally {