commit | bae46fa53cb591c4c9ed5ca92e55313d72003a63 | [log] [tgz] |
---|---|---|
author | ChristophWeber <christoph.weber@mettenmeier.de> | Tue Apr 02 14:54:08 2019 +0200 |
committer | ChristophWeber <christoph.weber@mettenmeier.de> | Tue Apr 02 14:54:08 2019 +0200 |
tree | 071351771912f6b8aa0e6ce5f1a5908906b0c3bb | |
parent | e3ec262bfb1b469407c9d7da5b14e393f106bba3 [diff] |
BP-782, fix not closed prepared statement
diff --git a/oKBereitschaftsplanungBackend/src/main/java/org/eclipse/openk/sp/db/config/DbInitializer.java b/oKBereitschaftsplanungBackend/src/main/java/org/eclipse/openk/sp/db/config/DbInitializer.java index 3a23b17..470df0a 100644 --- a/oKBereitschaftsplanungBackend/src/main/java/org/eclipse/openk/sp/db/config/DbInitializer.java +++ b/oKBereitschaftsplanungBackend/src/main/java/org/eclipse/openk/sp/db/config/DbInitializer.java
@@ -106,6 +106,7 @@ stmt = conn.prepareStatement(this.cutAndTrimSQL(sqlLine)); stmt.execute(); conn.commit(); + stmt.close(); } // close and reopen connection after 50 records to avoid that all cursors are in