1
Fork 0
mirror of https://github.com/Quackster/Havana.git synced 2025-07-03 13:17:46 +00:00

Merge pull request #24 from BobyTS/feature/clear-hand

Fix SQL query for removing hand items
This commit is contained in:
Quackster 2023-01-16 08:34:01 +10:00 committed by GitHub
commit 8e84411c8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -580,7 +580,7 @@ public class ItemDao {
try { try {
sqlConnection = Storage.getStorage().getConnection(); sqlConnection = Storage.getStorage().getConnection();
preparedStatement = Storage.getStorage().prepare("DELETE items WHERE is_hidden = 0 AND is_trading = 0 AND room_id = 0 AND user_id = ?", sqlConnection); preparedStatement = Storage.getStorage().prepare("DELETE FROM items WHERE is_hidden = 0 AND is_trading = 0 AND room_id = 0 AND user_id = ?", sqlConnection);
preparedStatement.setInt(1, userId); preparedStatement.setInt(1, userId);
preparedStatement.execute(); preparedStatement.execute();