mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2024-12-02 13:23:21 +01:00
additional sql query fix
This commit is contained in:
parent
42c43c41b6
commit
32f5619fe9
@ -31,7 +31,7 @@ public class PlayerWrapper {
|
||||
try {
|
||||
PreparedStatement ps = util.prepareStatement("CREATE TABLE IF NOT EXISTS " + uuidTableName +
|
||||
" ( `uuid` VARCHAR(36) NOT NULL , `name` VARCHAR(36) NOT NULL , " +
|
||||
" PRIMARY KEY (`uuid`))");
|
||||
" PRIMARY KEY (`name`))");
|
||||
|
||||
util.executeUpdate(ps);
|
||||
} catch (SQLException e) {
|
||||
@ -63,7 +63,7 @@ public class PlayerWrapper {
|
||||
String uuidTableName = PluginConfig.getUUIDTableName();
|
||||
|
||||
try {
|
||||
PreparedStatement ps = util.prepareStatement("SELECT * FROM " + uuidTableName + " WHERE player=?");
|
||||
PreparedStatement ps = util.prepareStatement("SELECT * FROM " + uuidTableName + " WHERE name=?");
|
||||
|
||||
ps.setString(1, name);
|
||||
ResultSet rs = util.executeQuery(ps);
|
||||
|
Loading…
Reference in New Issue
Block a user