From 86d0254c2f2ead38e6bb1cec01267ade55bd4dd0 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 18 Apr 2024 20:28:57 -0500 Subject: [PATCH] mine audit --- src/engine/db/handlers/dbMineHandler.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/engine/db/handlers/dbMineHandler.java b/src/engine/db/handlers/dbMineHandler.java index da722779..9e73fa86 100644 --- a/src/engine/db/handlers/dbMineHandler.java +++ b/src/engine/db/handlers/dbMineHandler.java @@ -65,6 +65,22 @@ public class dbMineHandler extends dbHandlerBase { } catch (SQLException e) { Logger.error(e); } + + try (Connection connection = DbManager.getConnection(); + PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM obj_mine;")) { + + ResultSet rs = preparedStatement.executeQuery(); + int count = 0; + while(rs.next()){ + count++; + } + if(count == 33){ + int poop = 100; + } + } catch (SQLException e) { + Logger.error(e); + } + return mines; }