Re: cvs: php4 /pear DB.php /pear/DB pgsql.php
| From: | Jon Parise | Date: | Tue, 27 Mar 2001 04:37:45 +0000 |
| Subject: | Re: cvs: php4 /pear DB.php /pear/DB pgsql.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-111@lists.php.net to get a copy of this message | ||
On Mon, Mar 26, 2001 at 11:31:50PM -0000, Thomas V.V.Cox wrote:
> - function fetchInto(&$arr, $fetchmode = DB_FETCHMODE_DEFAULT)
> + function fetchInto(&$arr, $fetchmode = DB_FETCHMODE_DEFAULT, $rownum=0)
> {
> if ($fetchmode == DB_FETCHMODE_DEFAULT) {
> $fetchmode = $this->dbh->fetchmode;
> }
> - return $this->dbh->fetchInto($this->result, $arr, $fetchmode);
> + return $this->dbh->fetchInto($this->result, $arr, $fetchmode, $rownum=0);
Setting $rownum equal to zero in that last call to fetchInto() doesn't
appear to make much sense, especially because you specify a default
value for that parameter in the function definition.
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member