return;
}
// 1 == RESTRICT, meaning no drop if the schema isn't empty
if (dropSchema.getDropBehavior() == StatementType.DROP_RESTRICT ||
dropSchema.getDropBehavior() == StatementType.DROP_DEFAULT)
throw new ReferencedSchemaException(schemaName);
// If the schema isn't used by any existing tables, it has effectively
// been dropped, so the drop "succeeds".
else if (dropSchema.getDropBehavior() == StatementType.DROP_CASCADE)
ddlFunctions.dropSchema(session, schemaName);
}