Skip to content

Commit

Permalink
[mrzhqiang#2] fixed: java.sql.SQLException: Operation not allowed for…
Browse files Browse the repository at this point in the history
… a result set of type ResultSet.TYPE_FORWARD_ONLY.
  • Loading branch information
mrzhqiang committed Aug 21, 2021
1 parent e46ec69 commit 0cb4def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/server/SpeedRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public final void loadSpeedRunData(SpeedRunType type) throws SQLException {
Map<Integer, String> rett = new LinkedHashMap<Integer, String>();
ResultSet rs = ps.executeQuery();
int rank = 1;
boolean cont = rs.first();
boolean cont = rs.isFirst() && rs.first();
boolean changed = cont;
while (cont) {
addSpeedRunData(ret, rett, rs.getString("members"), rs.getString("leader"), rank, rs.getString("timestring"));
Expand Down

0 comments on commit 0cb4def

Please sign in to comment.