mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 16:56:16 +00:00
Fixed a source for non-closed PreparedStatements.
This commit is contained in:
parent
c29cd2a8ee
commit
9f9d9fd183
@ -330,6 +330,7 @@ internal class DB_Update_6(conn: Connection, db: Database) : DatabaseUpdate(conn
|
|||||||
rs.close()
|
rs.close()
|
||||||
conn.setAutoCommit(false)
|
conn.setAutoCommit(false)
|
||||||
ps.executeBatch()
|
ps.executeBatch()
|
||||||
|
ps.close()
|
||||||
conn.commit()
|
conn.commit()
|
||||||
conn.setAutoCommit(true)
|
conn.setAutoCommit(true)
|
||||||
stmt.executeUpdate("DROP TABLE messages")
|
stmt.executeUpdate("DROP TABLE messages")
|
||||||
|
Loading…
Reference in New Issue
Block a user