Skip to content

Commit e9977ef

Browse files
committed
Do not auto close Connection in the SQL Script DB Schema Manager (the connection is opened and closed by the command context)
1 parent 346b85d commit e9977ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ protected void executeSchemaResource(String operation, String component, String
248248
String sqlStatement = null;
249249
String exceptionSqlStatement = null;
250250
DbSqlSession dbSqlSession = getDbSqlSession();
251-
try (Connection connection = dbSqlSession.getSqlSession().getConnection();) {
251+
try {
252+
Connection connection = dbSqlSession.getSqlSession().getConnection();
252253
Exception exception = null;
253254
byte[] bytes = IoUtil.readInputStream(inputStream, resourceName);
254255
String ddlStatements = new String(bytes, StandardCharsets.UTF_8);

0 commit comments

Comments
 (0)