Commit 631e617
Merge cockroachdb#145391
145391: sql: fix a bug when persisting some cursors r=yuzefovich a=yuzefovich
We recently added support for WITH HOLD cursors which are persisted, which exposed a bug with tracking of the internal position of the current row. IIUC the pre-existing bug didn't have any effect without WITH HOLD option.
Fixes: cockroachdb#145362.
Release note (bug fix): CockroachDB could previously encounter an internal error when fetching from the WITH HOLD cursor with FETCH FIRST and FETCH ABSOLUTE. The bug is only present in 25.2 alpha and beta versions.
Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>2 files changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
0 commit comments