mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Bugfix ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Cursors with SRFs caused crashes when not run via citus. Fix this behavior.. ---- #### AI description (iteration 1) #### PR Classification Bug fix #### PR Summary This pull request fixes an issue with cursor handling in the `HoldPortal` function. - `cursors.c`: Ensures that the cursor options include `CURSOR_OPT_SCROLL` to support backwards scanning.