Commit 0fb8790
James William Pye
Fix an invalid state bug on cursors.
This issue was caused by an invalid quantity being expressed in specific
read() invocations. The quantity was expressed as the utter remainder that
needed to be read, where it needed to be the the total number read. The issue
than manifested itself as providing an offset greater than the length of the
current buffer. This caused an over-compensation on future reads due to an
effective negative available rows.
Unrelated cleanups being some additional whitespace around statement snapshots.1 parent 8f77102 commit 0fb8790
1 file changed
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
149 | | - | |
150 | | - | |
| 151 | + | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
154 | | - | |
| 156 | + | |
155 | 157 | | |
156 | 158 | | |
157 | | - | |
| 159 | + | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
| |||
464 | 466 | | |
465 | 467 | | |
466 | 468 | | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | 469 | | |
472 | 470 | | |
473 | 471 | | |
| |||
485 | 483 | | |
486 | 484 | | |
487 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
488 | 490 | | |
489 | 491 | | |
490 | 492 | | |
| |||
992 | 994 | | |
993 | 995 | | |
994 | 996 | | |
995 | | - | |
| 997 | + | |
996 | 998 | | |
997 | | - | |
| 999 | + | |
998 | 1000 | | |
999 | 1001 | | |
1000 | 1002 | | |
| |||
0 commit comments