}
boolean checkForShutdown = false;
if (thrownException instanceof StandardException)
{
StandardException se = (StandardException) thrownException;
int severity = se.getSeverity();
if (severity <= ExceptionSeverity.STATEMENT_SEVERITY)
{
/*
** If autocommit is on, then do a rollback
** to release locks if requested. We did a stmt
** rollback in the cleanupOnError above, but we still
** may hold locks from the stmt.
*/
if (autoCommit && rollbackOnAutoCommit)
{
se.setSeverity(ExceptionSeverity.TRANSACTION_SEVERITY);
}
} else if (SQLState.CONN_INTERRUPT.equals(se.getMessageId())) {
// an interrupt closed the connection.
checkForShutdown = true;
}
}
// if cm is null, we don't have a connection context left,