cvs: php4 /pear DB.php
| From: | Thomas V.V.Cox | Date: | Fri, 02 Nov 2001 00:38:23 +0000 |
| Subject: | cvs: php4 /pear DB.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1234@lists.php.net to get a copy of this message | ||
cox Thu Nov 1 19:38:23 2001 EDT
Modified files:
/php4/pear DB.php
Log:
use feautres property instead of options
Index: php4/pear/DB.php
diff -u php4/pear/DB.php:1.77 php4/pear/DB.php:1.78
--- php4/pear/DB.php:1.77 Thu Nov 1 10:14:17 2001
+++ php4/pear/DB.php Thu Nov 1 19:38:23 2001
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: DB.php,v 1.77 2001/11/01 15:14:17 cox Exp $
+// $Id: DB.php,v 1.78 2001/11/02 00:38:23 cox Exp $
//
// Database independent query interface.
//
@@ -634,9 +634,9 @@
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 @@
{
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 @@
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 @@
{
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);