Skip to content

Conversation

@eatmoreapple
Copy link
Collaborator

The previous implementation called defer rows.Close() before returning the iterator, which caused rows to be closed immediately when the function returned, making the iterator unusable.

Now the iterator wraps the close logic, ensuring rows are closed only after iteration completes or stops.

The previous implementation called defer rows.Close() before returning
the iterator, which caused rows to be closed immediately when the function
returned, making the iterator unusable.

Now the iterator wraps the close logic, ensuring rows are closed only
after iteration completes or stops.
@eatmoreapple eatmoreapple merged commit 1f1b54f into main Jan 9, 2026
2 checks passed
@eatmoreapple eatmoreapple deleted the fix/query-iter-context-rows-close branch January 9, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants