From c04a3428902d45a484e418f95d3e3bc463507220 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 16 Jul 2023 07:52:10 -0400 Subject: [PATCH] Update to sql for better default mysql.cnf compatibility. --- src/engine/db/handlers/dbBuildingLocationHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbBuildingLocationHandler.java b/src/engine/db/handlers/dbBuildingLocationHandler.java index b92f2002..7a3bbd9e 100644 --- a/src/engine/db/handlers/dbBuildingLocationHandler.java +++ b/src/engine/db/handlers/dbBuildingLocationHandler.java @@ -31,7 +31,7 @@ public class dbBuildingLocationHandler extends dbHandlerBase { ArrayList buildingLocations = new ArrayList<>(); try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("select * from static_building_location " + + PreparedStatement preparedStatement = connection.prepareStatement("select `ID`, `BuildingID`, `type`, `slot`, `unknown`, `locX`, `locY`, `locZ`, `w`, `rotX`, `rotY`, `rotZ` from static_building_location " + "where type = 6 or type = 8 " + "GROUP BY buildingID, slot " + "ORDER BY buildingID, slot ASC;")) {