|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-21 12:22 UTC] cox@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
Hi I had some trouble when I tried call next time the following fetchRow: $array = $result->fetchRow(DB_FETCHMODE_ASSOC, $i++); It returns the result coorect but printed the message follow and exit Warning: sybase_data_seek() [function.sybase-data-seek]: Sybase: Bad row offset in c:\php\pear\DB\sybase.php on line 287 The problem seems to be the following lines of code starting at line 287 of DB/sybase.php if ($rownum !== null) { if (!sybase_data_seek($result, $rownum)) { return $this->sybaseRaiseError(); } } The following change seems to fix the problem. if ($rownum !== null) { if (($rownum >= 0) && ($rownum <= $this->numRows($result))) { @sybase_data_seek($result, $rownum); } else { return $this->sybaseRaiseError(); } } Can you fix this problem in the pear.php.net library to next version? Than you