Skip to content

Commit 9869e7c

Browse files
committed
Merge branch 'main' into flowable-release-7.2.0
2 parents 1daaa40 + e9977ef commit 9869e7c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/flowable-engine-common/src/main/java/org/flowable/common/engine/impl/db/AbstractSqlScriptBasedDbSchemaManager.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,10 @@ protected void executeSchemaResource(String operation, String component, String
318318
sqlStatement = addSqlStatementPiece(sqlStatement, line.substring(0, line.length() - 1));
319319
}
320320

321-
Statement jdbcStatement = connection.createStatement();
322-
try {
321+
try (Statement jdbcStatement = connection.createStatement();) {
323322

324323
logger.debug("SQL: {}", sqlStatement);
325324
jdbcStatement.execute(sqlStatement);
326-
jdbcStatement.close();
327325

328326
} catch (Exception e) {
329327
if (exception == null) {

0 commit comments

Comments
 (0)