From dd959e31cb80b7a58877da15dbe2c93abd7e0f49 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 1 Nov 2025 21:10:18 -0500 Subject: [PATCH] bardiel's requested slot lookup query amendment update(again) --- .../db/handlers/dbBuildingLocationHandler.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/engine/db/handlers/dbBuildingLocationHandler.java b/src/engine/db/handlers/dbBuildingLocationHandler.java index 882fd289..90f750e4 100644 --- a/src/engine/db/handlers/dbBuildingLocationHandler.java +++ b/src/engine/db/handlers/dbBuildingLocationHandler.java @@ -32,10 +32,14 @@ public class dbBuildingLocationHandler extends dbHandlerBase { ArrayList buildingLocations = new ArrayList<>(); try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("SELECT `MIN(ID)`,`BuildingID`,`slot`,`MIN(type)`,`MIN(unknown)`,`MIN(locX)`,`MIN(locY)`,`MIN(locZ)`,`MIN(w)`,`MIN(rotX)`,`MIN(rotY)`,`MIN(rotZ)` FROM static_building_location " + - "WHERE type IN (6, 8) " + - "GROUP BY BuildingID, slot " + - "ORDER BY BuildingID, slot ASC;")) { + PreparedStatement preparedStatement = connection.prepareStatement( + "SELECT MIN(ID), BuildingID, slot, MIN(type), MIN(unknown), MIN(locX), MIN(locY), MIN(locZ), " + + "MIN(w), MIN(rotX), MIN(rotY), MIN(rotZ) " + + "FROM static_building_location " + + "WHERE type IN (6, 8) " + + "GROUP BY BuildingID, slot " + + "ORDER BY BuildingID, slot ASC;" + )) { ResultSet rs = preparedStatement.executeQuery(); buildingLocations = getObjectsFromRs(rs, 20);