1
Fork 0
mirror of https://github.com/Quackster/Havana.git synced 2025-07-02 20:57:47 +00:00

Fix SQL query for removing hand items

This commit is contained in:
BobyTS 2022-12-17 17:46:12 +01:00
parent 3dc4da3d32
commit 869697bdcc

View file

@ -580,7 +580,7 @@ public class ItemDao {
try {
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.execute();