From: Tomas V.V.Cox Date: Fri, 2 Nov 2001 00:38:23 +0000 (+0000) Subject: use feautres property instead of options X-Git-Tag: ChangeLog~449 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a0e43cb54e0a33d30417b8c3228fe00c962fda8;p=php use feautres property instead of options --- diff --git a/pear/DB.php b/pear/DB.php index feea467ff3..5f0a536688 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -634,9 +634,9 @@ class DB_result if ($this->row_counter === null) { $this->row_counter = $this->dbh->limit_from; // For Interbase - if ($this->dbh->options['limit'] == false) { + if ($this->dbh->features['limit'] == false) { $i = 0; - while ($i++ <= $this->dbh->limit_from) { + while ($i++ < $this->dbh->limit_from) { $this->dbh->fetchInto($this->result, $arr, $fetchmode); } } @@ -646,9 +646,10 @@ class DB_result { return null; } - if ($this->dbh->options['limit'] == 'emulate') { + if ($this->dbh->features['limit'] == 'emulate') { $rownum = $this->row_counter; } + $this->row_counter++; } $res = $this->dbh->fetchInto($this->result, $arr, $fetchmode, $rownum); @@ -686,9 +687,9 @@ class DB_result if ($this->row_counter === null) { $this->row_counter = $this->dbh->limit_from; // For Interbase - if ($this->dbh->options['limit'] == false) { + if ($this->dbh->features['limit'] == false) { $i = 0; - while ($i++ <= $this->dbh->limit_from) { + while ($i++ < $this->dbh->limit_from) { $this->dbh->fetchInto($this->result, $arr, $fetchmode); } } @@ -698,9 +699,10 @@ class DB_result { return null; } - if ($this->dbh->options['limit'] == 'emulate') { + if ($this->dbh->features['limit'] == 'emulate') { $rownum = $this->row_counter; } + $this->row_counter++; } $res = $this->dbh->fetchInto($this->result, $arr, $fetchmode, $rownum);