From c43f70128a7f0e536383990eeae762088b08beeb Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 18 Apr 2024 20:40:07 -0500 Subject: [PATCH] mine audit --- src/engine/db/handlers/dbMineHandler.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbMineHandler.java b/src/engine/db/handlers/dbMineHandler.java index 2e712e15..ec8c0f6e 100644 --- a/src/engine/db/handlers/dbMineHandler.java +++ b/src/engine/db/handlers/dbMineHandler.java @@ -56,8 +56,17 @@ public class dbMineHandler extends dbHandlerBase { ArrayList mines = new ArrayList<>(); + //try (Connection connection = DbManager.getConnection(); + // PreparedStatement preparedStatement = connection.prepareStatement("SELECT `obj_mine`.*, `object`.`parent` FROM `object` INNER JOIN `obj_mine` ON `obj_mine`.`UID` = `object`.`UID`")) { + + // ResultSet rs = preparedStatement.executeQuery(); + // mines = getObjectsFromRs(rs, 1000); + + // } catch (SQLException e) { + // Logger.error(e); + //} try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("SELECT `obj_mine`.*, `object`.`parent` FROM `object` INNER JOIN `obj_mine` ON `obj_mine`.`UID` = `object`.`UID`")) { + PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM obj_mine;")) { ResultSet rs = preparedStatement.executeQuery(); mines = getObjectsFromRs(rs, 1000); @@ -65,7 +74,6 @@ public class dbMineHandler extends dbHandlerBase { } catch (SQLException e) { Logger.error(e); } - return mines; }