Refactor to remove abstraction

This commit is contained in:
MagicBot committed 2023-05-20 19:58:47 -04:00
1 parent 962649c0f2
commit 5b3dfbcc21
2 files changed
+50 -30

No files matched your search

+3 -3
View File
@@ -43,11 +43,11 @@ public class dbAccountHandler extends dbHandlerBase {
return account;
try (Connection connection = DbManager.getConnection();
PreparedStatement accountQuery = connection.prepareStatement("SELECT * FROM `obj_account` WHERE `UID`=?")) {
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `obj_account` WHERE `UID`=?")) {
accountQuery.setLong(1, accountID);
preparedStatement.setLong(1, accountID);
ResultSet rs = accountQuery.executeQuery();
ResultSet rs = preparedStatement.executeQuery();
account = (Account) getObjectFromRs(rs);
} catch (SQLException e) {