Commit 32504d0
fix: replace lastBufStart with lastBufEnd in QueryStreamAsync
The old guard skipped DecodePartial whenever bufStart == lastBufStart
(no decode progress). But after a split-token, bufStart stays the same
while new packets keep arriving — so every subsequent packet was skipped
until EOM, causing all rows to arrive at once instead of streaming.
Fix: track lastBufEnd instead. Skip decode only when no new bytes have
arrived since the last attempt (zero-payload packet), which is the
correct and rare case. Every packet that adds bytes now triggers decode.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f064f3b commit 32504d0
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | | - | |
345 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
0 commit comments