Skip to content

Commit

Permalink
Fix streamQueryResults in case of a failed SQL query (#3591)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsrnhld authored Oct 7, 2024
1 parent a9a97d0 commit 408e6cc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public SqlExecutionState(ExecutionState state, List<String> columnNames, List<En

@Override
public Stream<EntityResult> streamQueryResults() {
// when the SQL execution fails, table is null
if (table == null) {
return Stream.empty();
}
return table.stream();
}
}

0 comments on commit 408e6cc

Please sign in to comment.