cvs: pear /DB_Table/DB Table.php
| From: | Mark Wiesemann | Date: | Thu, 27 Oct 2005 20:19:35 +0000 |
| Subject: | cvs: pear /DB_Table/DB Table.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35913@lists.php.net to get a copy of this message | ||
wiesemann Thu Oct 27 16:19:35 2005 EDT
Modified files:
/pear/DB_Table/DB Table.php
Log:
Bugfix: select() and selectResult() didn't return error objects caused
due to problems in $sql array.
http://cvs.php.net/diff.php/pear/DB_Table/DB/Table.php?r1=1.40&r2=1.41&ty=u
Index: pear/DB_Table/DB/Table.php
diff -u pear/DB_Table/DB/Table.php:1.40 pear/DB_Table/DB/Table.php:1.41
--- pear/DB_Table/DB/Table.php:1.40 Thu Oct 27 16:10:14 2005
+++ pear/DB_Table/DB/Table.php Thu Oct 27 16:19:30 2005
@@ -19,7 +19,7 @@
*
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*
-* @version $Id: Table.php,v 1.40 2005/10/27 20:10:14 wiesemann Exp $
+* @version $Id: Table.php,v 1.41 2005/10/27 20:19:30 wiesemann Exp $
*
*/
@@ -770,6 +770,9 @@
{
// build the base command
$sql = $this->buildSQL($sqlkey, $filter, $order, $start, $count);
+ if (PEAR::isError($sql)) {
+ return $sql;
+ }
// set the get*() method name
if (isset($this->sql[$sqlkey]['get'])) {
@@ -863,6 +866,9 @@
{
// build the base command
$sql = $this->buildSQL($sqlkey, $filter, $order, $start, $count);
+ if (PEAR::isError($sql)) {
+ return $sql;
+ }
// DB_Table assumes you are using a shared PEAR DB object. Other
// scripts using the same object probably expect its fetchmode