Bug #10503 data_seek to end (after last row)
Submitted: 10 May 2005 11:25 Modified: 15 Dec 2010 7:30
Reporter: Olaf van der Spek (Basic Quality Contributor) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: C API (client library) Severity:S4 (Feature request)
Version:* OS:Any (*)
Assigned to: CPU Architecture:Any
Tags: qc

[10 May 2005 11:25] Olaf van der Spek
Description:
data_seek() can't seek to after the last row. I'd like it to be able to seek to that position to. Just like fseek.

In particular, I'd like mysql_data_seek(..., 0) to always work.

http://dev.mysql.com/doc/mysql/en/mysql-data-seek.html

> Seeks to an arbitrary row in a query result set. The offset value is a row number and should be in the range from 0 to mysql_num_rows(result)-1. 

How to repeat:
mysql_data_seek(..., 0);
[21 Sep 2005 8:23] Olaf van der Spek
Version: 4.1 -> *