mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 12:33:08 +00:00
A whole load of fixes
This commit is contained in:
parent
c25eccf4a0
commit
75a5a76fe9
61 changed files with 401 additions and 626 deletions
|
@ -36,8 +36,8 @@ import java.util.logging.Level;
|
|||
*/
|
||||
public class SQLite extends Database {
|
||||
|
||||
private Connection connection;
|
||||
private final String dbLocation;
|
||||
private Connection connection;
|
||||
|
||||
/**
|
||||
* Creates a new SQLite instance
|
||||
|
@ -98,9 +98,7 @@ public class SQLite extends Database {
|
|||
|
||||
final Statement statement = this.connection.createStatement();
|
||||
|
||||
final ResultSet result = statement.executeQuery(query);
|
||||
|
||||
return result;
|
||||
return statement.executeQuery(query);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -111,8 +109,6 @@ public class SQLite extends Database {
|
|||
|
||||
final Statement statement = this.connection.createStatement();
|
||||
|
||||
final int result = statement.executeUpdate(query);
|
||||
|
||||
return result;
|
||||
return statement.executeUpdate(query);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue