forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5b706ba
committed
Fix an error in the original coding of holdable cursors: PersistHoldablePortal
thought that it didn't have to reposition the underlying tuplestore if theportal is atEnd. But this is not so, because tuplestores have separate readand write cursors ... and the read cursor hasn't moved from the start.This mistake explains bug #2970 from William Zhang.Note: the coding here is pretty inefficient, but given that no one has noticedthis bug until now, I'd say hardly anyone uses the case where the cursor hasbeen advanced before being persisted. So maybe it's not worth worrying about.1 parent09f9553 commit5b706ba
1 file changed
+12
-4
lines changedLines changed: 12 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| |||
392 | 392 |
| |
393 | 393 |
| |
394 | 394 |
| |
395 |
| - | |
| 395 | + | |
396 | 396 |
| |
397 | 397 |
| |
398 | 398 |
| |
399 |
| - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
400 | 402 |
| |
401 | 403 |
| |
402 | 404 |
| |
403 |
| - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
404 | 412 |
| |
405 | 413 |
| |
406 | 414 |
| |
|
0 commit comments
Comments
(0)