dont close sql querty before geting result set

This commit is contained in:
Tyler Murphy 2022-05-04 16:56:33 -04:00
parent c2d298dbff
commit 97199843fa

View file

@ -62,7 +62,6 @@ public class PlayerInfoTable {
statement.setBytes(1, bytes); statement.setBytes(1, bytes);
ResultSet rs = statement.executeQuery(); ResultSet rs = statement.executeQuery();
if(rs.next()){ if(rs.next()){
connection.close();
PlayerInfo info = new PlayerInfo( PlayerInfo info = new PlayerInfo(
uuid, uuid,
rs.getInt("wins"), rs.getInt("wins"),
@ -71,6 +70,7 @@ public class PlayerInfoTable {
rs.getInt("games_played") rs.getInt("games_played")
); );
rs.close(); rs.close();
connection.close();
return info; return info;
} }
rs.close(); rs.close();