Skip to content

Commit

Permalink
Do not auto close Connection in the SQL Script DB Schema Manager (the…
Browse files Browse the repository at this point in the history
… connection is opened and closed by the command context)
  • Loading branch information
filiphr committed Aug 20, 2024
1 parent 346b85d commit e9977ef
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ protected void executeSchemaResource(String operation, String component, String
String sqlStatement = null;
String exceptionSqlStatement = null;
DbSqlSession dbSqlSession = getDbSqlSession();
try (Connection connection = dbSqlSession.getSqlSession().getConnection();) {
try {
Connection connection = dbSqlSession.getSqlSession().getConnection();
Exception exception = null;
byte[] bytes = IoUtil.readInputStream(inputStream, resourceName);
String ddlStatements = new String(bytes, StandardCharsets.UTF_8);
Expand Down

0 comments on commit e9977ef

Please sign in to comment.