Skip to content

Commit

Permalink
[1] Fixing loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndonbauto committed Nov 26, 2021
1 parent ac7f881 commit fbe7396
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ static class SqlGremlinTestResult {

SqlGremlinTestResult(final SqlGremlinQueryResult sqlGremlinQueryResult) throws SQLException {
columns = sqlGremlinQueryResult.getColumns();
List<?> res;
do {
final List<?> res = sqlGremlinQueryResult.getResult();
if (res instanceof SqlGremlinQueryResult.EmptyResult) {
break;
res = sqlGremlinQueryResult.getResult();
if (!(res instanceof SqlGremlinQueryResult.EmptyResult)) {
this.rows.add(res);
}
this.rows.add(res);
} while (true);
} while (!(res instanceof SqlGremlinQueryResult.EmptyResult));
}
}
}

0 comments on commit fbe7396

Please sign in to comment.