Skip to content

Commit

Permalink
* fix logic
Browse files Browse the repository at this point in the history
* clear all tuples immediately when there is no chance of returning a resultset
  • Loading branch information
pokab authored and vargabalazs93 committed Oct 29, 2024
1 parent b634254 commit 10b5807
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2385,9 +2385,9 @@ protected void processResults(ResultHandler handler, int flags, boolean adaptive
tupleBytes += accountBytes(tuple);
} else {
if (!hadTooManyTuples) {
handler.handleError(new PSQLException(GT.tr("Ran out of allowed memory retrieving query results."), PSQLState.OUT_OF_MEMORY));
} else {
hadTooManyTuples = true;
tuples = new ArrayList<Tuple>();
handler.handleError(new PSQLException(GT.tr("Ran out of allowed memory retrieving query results."), PSQLState.OUT_OF_MEMORY));
}
}
}
Expand Down

0 comments on commit 10b5807

Please sign in to comment.