Skip to content

Commit

Permalink
Release context from pending query
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-- committed Feb 12, 2025
1 parent 3b3f3d5 commit 7a5577c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pgduckdb_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ ExecuteQuery(DuckdbScanState *state) {
execution_result = pending->ExecuteTask();
} while (execution_result != duckdb::PendingExecutionResult::EXECUTION_ERROR &&
execution_result != duckdb::PendingExecutionResult::NO_TASKS_AVAILABLE);

pending->Close();
} catch (std::exception &ex) {
}
// Delete the scan state
Expand Down

0 comments on commit 7a5577c

Please sign in to comment.