mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-28 12:07:35 +01:00
Fix statement not being closed
This commit is contained in:
parent
e3333fabb8
commit
bd96d09b74
@ -150,7 +150,10 @@ public abstract class SQLDB extends Database {
|
||||
if (!newDatabase && getVersion() < 8) {
|
||||
setVersion(8);
|
||||
}
|
||||
connection.prepareStatement("DROP TABLE IF EXISTS plan_locations").execute();
|
||||
|
||||
try (Statement statement = connection.createStatement()) {
|
||||
statement.execute("DROP TABLE IF EXISTS plan_locations");
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user