From 89192c7ea01a2679750de029ae92904c39888a2d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 23 May 2023 11:07:20 -0400 Subject: [PATCH] Cleanup post db-refactor. --- src/engine/db/handlers/dbBuildingHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbBuildingHandler.java b/src/engine/db/handlers/dbBuildingHandler.java index 34387911..94b43be4 100644 --- a/src/engine/db/handlers/dbBuildingHandler.java +++ b/src/engine/db/handlers/dbBuildingHandler.java @@ -656,7 +656,7 @@ public class dbBuildingHandler extends dbHandlerBase { return storedEnum; try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("SELECT `type` FROM `object` WHERE `object`.`UID` = n LIMIT 1;")) { + PreparedStatement preparedStatement = connection.prepareStatement("SELECT `type` FROM `object` WHERE `object`.`UID` = ? LIMIT 1;")) { preparedStatement.setLong(1, object_UID); @@ -668,7 +668,7 @@ public class dbBuildingHandler extends dbHandlerBase { } } catch (SQLException e) { - Logger.error("UID_ENUM Lookup failed for UID: " + object_UID + "type: " + objectType); + Logger.error(e); return DbObjectType.INVALID; }