Fixed a source for non-closed PreparedStatements.

This commit is contained in:
Fabian Schlenz 2018-03-08 22:17:01 +01:00
parent c29cd2a8ee
commit 9f9d9fd183
1 changed files with 1 additions and 0 deletions

View File

@ -330,6 +330,7 @@ internal class DB_Update_6(conn: Connection, db: Database) : DatabaseUpdate(conn
rs.close()
conn.setAutoCommit(false)
ps.executeBatch()
ps.close()
conn.commit()
conn.setAutoCommit(true)
stmt.executeUpdate("DROP TABLE messages")