Browse Source

Sql bugfix

combat-2
MagicBot 8 months ago
parent
commit
4e1621db99
  1. 2
      src/engine/db/handlers/dbWarehouseHandler.java

2
src/engine/db/handlers/dbWarehouseHandler.java

@ -86,7 +86,7 @@ public class dbWarehouseHandler extends dbHandlerBase { @@ -86,7 +86,7 @@ public class dbWarehouseHandler extends dbHandlerBase {
public void DELETE_WAREHOUSE(Warehouse warehouse) {
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("DELETE FROM ``dyn_warehouse` WHERE `cityUUID` = ?;")) {
PreparedStatement preparedStatement = connection.prepareStatement("DELETE FROM `dyn_warehouse` WHERE `cityUUID` = ?;")) {
preparedStatement.setInt(1, warehouse.city.getObjectUUID());
preparedStatement.executeUpdate();

Loading…
Cancel
Save