cvs: pear /Translation2/Container db.php mdb.php mdb2.php
| From: | Lorenzo Alberton | Date: | Wed, 22 Feb 2006 16:31:55 +0000 |
| Subject: | cvs: pear /Translation2/Container db.php mdb.php mdb2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38495@lists.php.net to get a copy of this message | ||
quipo Wed Feb 22 16:31:55 2006 UTC
Modified files:
/pear/Translation2/Container db.php mdb.php mdb2.php
Log:
don't wrap the PEAR_Error object again in _connect(), return it as-is
http://cvs.php.net/viewcvs.cgi/pear/Translation2/Container/db.php?r1=1.27&r2=1.28&diff_format=u
Index: pear/Translation2/Container/db.php
diff -u pear/Translation2/Container/db.php:1.27 pear/Translation2/Container/db.php:1.28
--- pear/Translation2/Container/db.php:1.27 Thu Sep 8 17:27:37 2005
+++ pear/Translation2/Container/db.php Wed Feb 22 16:31:55 2006
@@ -33,7 +33,7 @@
* @author Ian Eure <ieure at php dot net>
* @copyright 2004-2005 Lorenzo Alberton, Ian Eure
* @license http://www.debian.org/misc/bsd.license BSD
License (3 Clause)
- * @version CVS: $Id: db.php,v 1.27 2005/09/08 17:27:37 quipo Exp $
+ * @version CVS: $Id: db.php,v 1.28 2006/02/22 16:31:55 quipo Exp $
* @link http://pear.php.net/package/Translation2
*/
@@ -54,7 +54,7 @@
* @author Ian Eure <ieure at php dot net>
* @copyright 2004-2005 Lorenzo Alberton, Ian Eure
* @license http://www.debian.org/misc/bsd.license BSD
License (3 Clause)
- * @version CVS: $Id: db.php,v 1.27 2005/09/08 17:27:37 quipo Exp $
+ * @version CVS: $Id: db.php,v 1.28 2006/02/22 16:31:55 quipo Exp $
* @link http://pear.php.net/package/Translation2
*/
class Translation2_Container_db extends Translation2_Container
@@ -119,8 +119,8 @@
PEAR_ERROR_RETURN);
}
- if (DB::isError($this->db) || PEAR::isError($this->db)) {
- return PEAR::raiseError($this->db->getMessage(), $this->db->getCode());
+ if (PEAR::isError($this->db)) {
+ return $this->db;
}
return true;
}
http://cvs.php.net/viewcvs.cgi/pear/Translation2/Container/mdb.php?r1=1.21&r2=1.22&diff_format=u
Index: pear/Translation2/Container/mdb.php
diff -u pear/Translation2/Container/mdb.php:1.21 pear/Translation2/Container/mdb.php:1.22
--- pear/Translation2/Container/mdb.php:1.21 Thu Sep 8 17:27:37 2005
+++ pear/Translation2/Container/mdb.php Wed Feb 22 16:31:55 2006
@@ -32,7 +32,7 @@
* @author Lorenzo Alberton <l dot alberton at quipo dot it>
* @copyright 2004-2005 Lorenzo Alberton
* @license http://www.debian.org/misc/bsd.license BSD
License (3 Clause)
- * @version CVS: $Id: mdb.php,v 1.21 2005/09/08 17:27:37 quipo Exp $
+ * @version CVS: $Id: mdb.php,v 1.22 2006/02/22 16:31:55 quipo Exp $
* @link http://pear.php.net/package/Translation2
*/
@@ -52,7 +52,7 @@
* @author Lorenzo Alberton <l dot alberton at quipo dot it>
* @copyright 2004-2005 Lorenzo Alberton
* @license http://www.debian.org/misc/bsd.license BSD
License (3 Clause)
- * @version CVS: $Id: mdb.php,v 1.21 2005/09/08 17:27:37 quipo Exp $
+ * @version CVS: $Id: mdb.php,v 1.22 2006/02/22 16:31:55 quipo Exp $
* @link http://pear.php.net/package/Translation2
*/
class Translation2_Container_mdb extends Translation2_Container
@@ -117,8 +117,8 @@
PEAR_ERROR_RETURN);
}
- if (MDB::isError($this->db) || PEAR::isError($this->db)) {
- return PEAR::raiseError($this->db->getMessage(), $this->db->code);
+ if (PEAR::isError($this->db)) {
+ return $this->db;
}
return true;
}
http://cvs.php.net/viewcvs.cgi/pear/Translation2/Container/mdb2.php?r1=1.19&r2=1.20&diff_format=u
Index: pear/Translation2/Container/mdb2.php
diff -u pear/Translation2/Container/mdb2.php:1.19 pear/Translation2/Container/mdb2.php:1.20
--- pear/Translation2/Container/mdb2.php:1.19 Thu Sep 8 17:27:37 2005
+++ pear/Translation2/Container/mdb2.php Wed Feb 22 16:31:55 2006
@@ -32,7 +32,7 @@
* @author Lorenzo Alberton <l dot alberton at quipo dot it>
* @copyright 2004-2005 Lorenzo Alberton
* @license http://www.debian.org/misc/bsd.license BSD
License (3 Clause)
- * @version CVS: $Id: mdb2.php,v 1.19 2005/09/08 17:27:37 quipo Exp $
+ * @version CVS: $Id: mdb2.php,v 1.20 2006/02/22 16:31:55 quipo Exp $
* @link http://pear.php.net/package/Translation2
*/
@@ -52,7 +52,7 @@
* @author Lorenzo Alberton <l dot alberton at quipo dot it>
* @copyright 2004-2005 Lorenzo Alberton
* @license http://www.debian.org/misc/bsd.license BSD
License (3 Clause)
- * @version CVS: $Id: mdb2.php,v 1.19 2005/09/08 17:27:37 quipo Exp $
+ * @version CVS: $Id: mdb2.php,v 1.20 2006/02/22 16:31:55 quipo Exp $
* @link http://pear.php.net/package/Translation2
*/
class Translation2_Container_mdb2 extends Translation2_Container
@@ -116,8 +116,8 @@
PEAR_ERROR_RETURN);
}
- if (MDB2::isError($this->db) || PEAR::isError($this->db)) {
- return PEAR::raiseError($this->db->getMessage(), $this->db->code);
+ if (PEAR::isError($this->db)) {
+ return $this->db;
}
return true;
}