Fix invalid SELECT statement in MySQLDatabase

This commit is contained in:
William authored and GitHub committed 2023-06-18 10:11:20 +01:00
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 {
}
}
}
}