cvs: pear /DB_DataObject DataObject.php
| From: | Alan Knowles | Date: | Wed, 20 Apr 2005 07:50:03 +0000 |
| Subject: | cvs: pear /DB_DataObject DataObject.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-31313@lists.php.net to get a copy of this message | ||
alan_k Wed Apr 20 03:50:03 2005 EDT
Modified files:
/pear/DB_DataObject DataObject.php
Log:
fix bug #4168 - if connection test is sucessfull, dont try and connect.. (performance improvement)
http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject.php?r1=1.352&r2=1.353&ty=u
Index: pear/DB_DataObject/DataObject.php
diff -u pear/DB_DataObject/DataObject.php:1.352 pear/DB_DataObject/DataObject.php:1.353
--- pear/DB_DataObject/DataObject.php:1.352 Wed Apr 20 03:46:44 2005
+++ pear/DB_DataObject/DataObject.php Wed Apr 20 03:50:01 2005
@@ -15,7 +15,7 @@
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: DataObject.php,v 1.352 2005/04/20 07:46:44 alan_k Exp $
+ * @version CVS: $Id: DataObject.php,v 1.353 2005/04/20 07:50:01 alan_k Exp $
* @link http://pear.php.net/package/DB_DataObject
*/
@@ -2053,6 +2053,9 @@
if (!$this->_database) {
$this->_database =
$_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5]->dsn['database'];
}
+ // theoretically we have a md5, it's listed in connections and it's not an
error.
+ // so everything is ok!
+ return true;
}