ID: 24540
User updated by: info at php-power dot it
Reported By: info at php-power dot it
Status: Open
Bug Type: SQLite related
Operating System: Windows XP
PHP Version: 5.0.0b1 (beta1)
New Comment:
Excused:
sqlite_seek() moves the pointer ahead to record requested
Example:
$sqlite_seek($result, 1);
sqlite_current($result);
result: 2 row of table
$sqlite_seek($result, 3);
sqlite_current($result);
result: 3 row of table
etc ...
Previous Comments:
------------------------------------------------------------------------
[2003-07-08 10:56:05] info at php-power dot it
Description:
------------
The function sqlite_seek() not return a requested line,
but the row successive.
Reproduce code:
---------------
$result = sqlite_query('SELECT * FROM test', $conn);
if (sqlite_seek($result, 1)) {
$row = sqlite_current($result, SQLITE_NUM, true);
}
Expected result:
----------------
The first row of table.
Actual result:
--------------
The secon row of table.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24540&edit=1