dont close sql querty before geting result set
This commit is contained in:
parent
c2d298dbff
commit
97199843fa
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue