Commit ee37dd3
refactor: remove unreachable progress guard in RowsResponse.decode_body
The `if offset == prev_offset` check was added to prevent infinite loops
for zero-column results, but the zero-column handling was later extracted
into its own early-return branch. Inside the while loop, column_count >= 1
is guaranteed, and decode_row_header always advances by at least 8 bytes,
so offset always increases and the guard is unreachable dead code.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a551dea commit ee37dd3
1 file changed
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
371 | 369 | | |
372 | 370 | | |
373 | 371 | | |
| |||
404 | 402 | | |
405 | 403 | | |
406 | 404 | | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | 405 | | |
413 | 406 | | |
414 | 407 | | |
| |||
0 commit comments