cvs: pear /DB_DataObject DataObject.php
| From: | Alan Knowles | Date: | Fri, 11 Jun 2004 06:22:35 +0000 |
| Subject: | cvs: pear /DB_DataObject DataObject.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-20510@lists.php.net to get a copy of this message | ||
alan_k Fri Jun 11 02:22:35 2004 EDT
Modified files:
/pear/DB_DataObject DataObject.php
Log:
make debugging display query errors
http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject.php?r1=1.263&r2=1.264&ty=u
Index: pear/DB_DataObject/DataObject.php
diff -u pear/DB_DataObject/DataObject.php:1.263 pear/DB_DataObject/DataObject.php:1.264
--- pear/DB_DataObject/DataObject.php:1.263 Thu Jun 10 23:42:07 2004
+++ pear/DB_DataObject/DataObject.php Fri Jun 11 02:22:34 2004
@@ -20,7 +20,7 @@
* @package DB_DataObject
* @category DB
*
- * $Id: DataObject.php,v 1.263 2004/06/11 03:42:07 alan_k Exp $
+ * $Id: DataObject.php,v 1.264 2004/06/11 06:22:34 alan_k Exp $
*/
/* ===========================================================================
@@ -2032,9 +2032,8 @@
if (DB::isError($result)) {
- if (@$_DB_DATAOBJECT['CONFIG']['debug']) {
- $this->debug($string, "SENT");
-
+ if (@$_DB_DATAOBJECT['CONFIG']['debug']) {
+ $this->debug($result->toString(), "Query Error",1 );
}
return $result;
}
@@ -2618,7 +2617,7 @@
$links = array();
if (isset($_DB_DATAOBJECT['LINKS'][$this->_database])) {
- $links = &$_DB_DATAOBJECT['LINKS'][$this->_database];
+ $links = $_DB_DATAOBJECT['LINKS'][$this->_database];
}
@@ -2888,6 +2887,7 @@
$ar = isset($_DB_DATAOBJECT['RESULTFIELDS'][$this->_DB_resultid]) ?
$_DB_DATAOBJECT['RESULTFIELDS'][$this->_DB_resultid] :
$this->table();
+
foreach($ar as $k=>$v) {
if (!isset($this->$k)) {