HHH-7725 unclosed Statement

This commit is contained in:
brmeyer 2012-10-31 17:15:23 -04:00
parent a4808e64d1
commit 1fdba5d906
1 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,8 @@ public class PersistentTableBulkIdStrategy implements MultiTableBulkIdStrategy {
log.debugf( "Error attempting to export id-table [%s] : %s", idTableDefinition.getName(), e.getMessage() );
}
}
statement.close();
}
catch (SQLException e) {
log.error( "Unable to use JDBC Connection to create Statement", e );
@ -198,6 +200,8 @@ public class PersistentTableBulkIdStrategy implements MultiTableBulkIdStrategy {
log.debugf( "Error attempting to cleanup id-table : [%s]", e.getMessage() );
}
}
statement.close();
}
catch (SQLException e) {
log.error( "Unable to use JDBC Connection to create Statement", e );