Sql bugfix
This commit is contained in:
@@ -86,7 +86,7 @@ public class dbWarehouseHandler extends dbHandlerBase {
|
|||||||
|
|
||||||
public void DELETE_WAREHOUSE(Warehouse warehouse) {
|
public void DELETE_WAREHOUSE(Warehouse warehouse) {
|
||||||
try (Connection connection = DbManager.getConnection();
|
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.setInt(1, warehouse.city.getObjectUUID());
|
||||||
preparedStatement.executeUpdate();
|
preparedStatement.executeUpdate();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user