cvs: pear /MDB common.php
| From: | Lukas Smith | Date: | Thu, 20 Jun 2002 12:42:20 +0000 |
| Subject: | cvs: pear /MDB common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4713@lists.php.net to get a copy of this message | ||
lsmith Thu Jun 20 08:42:20 2002 EDT
Modified files:
/pear/MDB common.php
Log:
fixed baseFetchInto to work of no row number is supplied
Index: pear/MDB/common.php
diff -u pear/MDB/common.php:1.17 pear/MDB/common.php:1.18
--- pear/MDB/common.php:1.17 Thu Jun 20 08:02:32 2002
+++ pear/MDB/common.php Thu Jun 20 08:42:14 2002
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: common.php,v 1.17 2002/06/20 12:02:32 lsmith Exp $
+// $Id: common.php,v 1.18 2002/06/20 12:42:14 lsmith Exp $
//
// Base class for DB implementations.
//
@@ -3410,7 +3410,7 @@
$this->highest_fetched_row[$result] = max($this->highest_fetched_row[$result],
$row);
}
if ($rownum + 1 > $this->numRows($result)) {
- return $this->raiseError(DB_ERROR, '', '', 'baseFetchInto:
Tried to access beyond end of record set');
+ return NULL;
}
$columns = $this->numCols($result);
if (MDB::isError($columns)) {