mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-17 07:02:53 -04:00
Merge pull request #1189 from ilikenwf/master
Database Fixes, Code Cleanups, Removal of Nested loops and if statements that are not necessary
This commit is contained in:
@@ -719,7 +719,7 @@ public class ObjectService implements INetworkDispatch {
|
||||
customName = customName.split(" ")[0];
|
||||
|
||||
try {
|
||||
PreparedStatement ps = core.getDatabase1().preparedStatement("SELECT * FROM characters WHERE \"firstName\" ILIKE ?");
|
||||
PreparedStatement ps = core.getDatabase1().preparedStatement("SELECT id FROM characters WHERE \"firstName\" ILIKE ?");
|
||||
ps.setString(1, customName);
|
||||
ResultSet resultSet = ps.executeQuery();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user