fix name reservation query .. i hope. :p

This commit is contained in:
darkk1138
2013-12-14 20:39:52 +01:00
parent ff44d1ba96
commit 6b565dcd65
+1 -1
View File
@@ -356,7 +356,7 @@ public class CharacterService implements INetworkDispatch {
PreparedStatement ps2 = databaseConnection.preparedStatement("SELECT \"accountId\" FROM temp_reserved_char_names WHERE \"accountId\"!=? AND LOWER(\"firstName\")=?");
ps2.setLong(1, accountId);
ps2.setString(2, firstName);
ps2.setString(2, firstName.toLowerCase());
ResultSet resultSet2 = ps2.executeQuery();
boolean isReserved = resultSet2.next();
resultSet2.getStatement().close();