Code written to refactor db call out of effect costs.

This commit is contained in:
2024-04-23 14:36:01 -04:00
parent e2dbc19adc
commit 81f86ceca9
@@ -43,7 +43,7 @@ public class dbEffectsResourceCostHandler extends dbHandlerBase {
HashMap<mbEnums.ResourceType, Integer> costMap = new HashMap<>(); HashMap<mbEnums.ResourceType, Integer> costMap = new HashMap<>();
try (Connection connection = DbManager.getConnection(); try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("SELECT DISTINCT `IDString` FROM `static_power_effectcost` WHERE `IDString` = ?")) { PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_power_effectcost` WHERE `IDString` = ?")) {
preparedStatement.setString(1, effectID); preparedStatement.setString(1, effectID);
ResultSet rs = preparedStatement.executeQuery(); ResultSet rs = preparedStatement.executeQuery();