Skip to content

Commit 174e9b8

Browse files
committed
HHH-7725 unclosed Statement
1 parent 3847ebb commit 174e9b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hibernate-core/src/main/java/org/hibernate/hql/spi/PersistentTableBulkIdStrategy.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ protected void exportTableDefinitions(
160160
log.debugf( "Error attempting to export id-table [%s] : %s", idTableDefinition.getName(), e.getMessage() );
161161
}
162162
}
163+
164+
statement.close();
163165
}
164166
catch (SQLException e) {
165167
log.error( "Unable to use JDBC Connection to create Statement", e );
@@ -198,6 +200,8 @@ public void release(JdbcServices jdbcServices, JdbcConnectionAccess connectionAc
198200
log.debugf( "Error attempting to cleanup id-table : [%s]", e.getMessage() );
199201
}
200202
}
203+
204+
statement.close();
201205
}
202206
catch (SQLException e) {
203207
log.error( "Unable to use JDBC Connection to create Statement", e );

0 commit comments

Comments
 (0)