Skip to content

Commit

Permalink
fix sql
Browse files Browse the repository at this point in the history
  • Loading branch information
rex2go committed Aug 26, 2021
1 parent d31af37 commit 3c4c30c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/eu/rex2go/chat2go/user/UserManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public User loadUser(UUID uuid, String username, boolean force) {
// update remote username

PreparedStatement ps1 = connection.prepareStatement("UPDATE `user` SET `username` = ? WHERE `uuid` = ? ");
ps1.setString(1, uuid.toString());
ps1.setString(2, username);
ps1.setString(1, username);
ps1.setString(2, uuid.toString());

ps1.execute();
ps1.close();
Expand Down

0 comments on commit 3c4c30c

Please sign in to comment.