mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Fix invalid SELECT statement in MySQLDatabase
This commit is contained in:
1 parent
2a031ded69
commit
2cbc46cd0e
1 file changed
+2
-2
@@ -260,7 +260,7 @@ public class MySqlDatabase extends Database {
|
||||
public Optional<SavedUser> getUserDataByName(@NotNull String name) {
|
||||
try (Connection connection = getConnection()) {
|
||||
try (PreparedStatement statement = connection.prepareStatement(formatStatementTables("""
|
||||
SELECT `uuid`, `username`, `home_slots`, `ignoring_requests`,
|
||||
SELECT `uuid`, `username`, `home_slots`, `ignoring_requests`
|
||||
FROM `%players_table%`
|
||||
WHERE `username`=?"""))) {
|
||||
statement.setString(1, name);
|
||||
@@ -1083,4 +1083,4 @@ public class MySqlDatabase extends Database {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user