cvs: php4 /pear/DB fbsql.php mysql.php

From: Date: Fri, 08 Jun 2001 23:37:51 +0000
Subject: cvs: php4 /pear/DB fbsql.php mysql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-193@lists.php.net to get a copy of this message
cox Sat Jun 9 01:37:51 2001 EDT Modified files: /php4/pear/DB fbsql.php mysql.php Log: Fix fetch absolute row numbers when rownum=0 Index: php4/pear/DB/fbsql.php diff -u php4/pear/DB/fbsql.php:1.3 php4/pear/DB/fbsql.php:1.4 --- php4/pear/DB/fbsql.php:1.3 Wed Apr 25 21:41:51 2001 +++ php4/pear/DB/fbsql.php Sat Jun 9 01:37:51 2001 @@ -223,9 +223,7 @@ function fetchInto($result, &$arr, $fetchmode, $rownum=null) { if ($rownum !== null) { - if (($rownum > 0) && ($rownum <= $this->num_rows[$result])) { - @fbsql_data_seek($result, $rownum); - } else { + if (!@fbsql_data_seek($result, $rownum)) { return null; } } Index: php4/pear/DB/mysql.php diff -u php4/pear/DB/mysql.php:1.57 php4/pear/DB/mysql.php:1.58 --- php4/pear/DB/mysql.php:1.57 Fri Jun 1 19:56:24 2001 +++ php4/pear/DB/mysql.php Sat Jun 9 01:37:51 2001 @@ -224,9 +224,7 @@ function fetchInto($result, &$arr, $fetchmode, $rownum=null) { if ($rownum !== null) { - if (($rownum > 0) && ($rownum <= $this->num_rows[$result])) { - @mysql_data_seek($result, $rownum); - } else { + if (!@mysql_data_seek($result, $rownum)) { return null; } }

« previous php.pear.cvs (#193) next »