mirror of
https://github.com/SimplexDevelopment/Traverse.git
synced 2024-12-22 05:57:36 +00:00
minor sql fix
This commit is contained in:
parent
6ab35035b0
commit
e70eef3b80
@ -32,7 +32,7 @@ public class DBUser {
|
||||
public void insert(@NotNull PlayerData playerData) {
|
||||
PreparedStatement statement = getConnection().prepareStatement("IF NOT EXISTS (SELECT 1 FROM users WHERE uuid = ?) " +
|
||||
"BEGIN INSERT INTO users (uuid, username, rank, play_time, coins, last_login) VALUES (?, ?, ?, ?, ?, ?) END " +
|
||||
"ELSE BEGIN (UPDATE users SET username = ?, rank = ?, play_time = ?, coins = ?, last_login = ? WHERE uuid = ?) END;");
|
||||
"ELSE BEGIN UPDATE users SET username = ?, rank = ?, play_time = ?, coins = ?, last_login = ? WHERE uuid = ? END;");
|
||||
|
||||
statement.setString(1, playerData.getUuid().toString());
|
||||
statement.setString(2, playerData.getUuid().toString());
|
||||
|
Loading…
Reference in New Issue
Block a user