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; }