1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-06-19 15:31:25 +02:00

Fix id retrieval

This commit is contained in:
t00thpick1 2014-08-08 00:09:00 -04:00
parent 9f5445689c
commit f2881f02c8

@ -1449,7 +1449,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
PreparedStatement statement = null;
try {
statement = connection.prepareStatement("SELECT id, user FROM " + tablePrefix + "users WHERE uuid = ? OR (uuid = null AND user = ?)");
statement = connection.prepareStatement("SELECT id, user FROM " + tablePrefix + "users WHERE uuid = ? OR (uuid IS NULL AND user = ?)");
statement.setString(1, uuid.toString());
statement.setString(2, playerName);
resultSet = statement.executeQuery();