Fixed getObjectByFirstName to no longer be case-sensitive - broke it by mistake :(

This fixes all chat related problems (/tells, guildchat, groupchat, chat
rooms)
This commit is contained in:
Waverunner
2014-07-16 11:00:16 -04:00
parent be94ee3784
commit d0ae4e81f0
+1 -1
View File
@@ -647,7 +647,7 @@ public class ObjectService implements INetworkDispatch {
customName = customName.split(" ")[0];
try {
PreparedStatement ps = core.getDatabase1().preparedStatement("SELECT * FROM characters WHERE \"firstName\"=?");
PreparedStatement ps = core.getDatabase1().preparedStatement("SELECT * FROM characters WHERE \"firstName\" ILIKE ?");
ps.setString(1, customName);
ResultSet resultSet = ps.executeQuery();