PR #489 didn't handle the case where a ReadRows happened at the end of the page, but didn't fill up the given slice. The following ReadRows call would read from the beginning of a new page up to the original given slice size, which would overflow the remaining space available in the slice.
This fixes #493. I added test coverage around these various conditions.
Also fix the unhappy path when errors can occur to correctly report the number of rows read.
PR #489 didn't handle the case where a
ReadRows
happened at the end of the page, but didn't fill up the given slice. The followingReadRows
call would read from the beginning of a new page up to the original given slice size, which would overflow the remaining space available in the slice.This fixes #493. I added test coverage around these various conditions.
Also fix the unhappy path when errors can occur to correctly report the number of rows read.