cvs: pear /DB_DataObject DataObject.php
| From: | Alan Knowles | Date: | Mon, 06 Mar 2006 01:29:35 +0000 |
| Subject: | cvs: pear /DB_DataObject DataObject.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38943@lists.php.net to get a copy of this message | ||
alan_k Mon Mar 6 01:29:35 2006 UTC
Modified files:
/pear/DB_DataObject DataObject.php
Log:
fix bug #7012 - eak checking wrong variable to before prefixing database name
http://cvs.php.net/viewcvs.cgi/pear/DB_DataObject/DataObject.php?r1=1.408&r2=1.409&diff_format=u
Index: pear/DB_DataObject/DataObject.php
diff -u pear/DB_DataObject/DataObject.php:1.408 pear/DB_DataObject/DataObject.php:1.409
--- pear/DB_DataObject/DataObject.php:1.408 Thu Mar 2 02:41:37 2006
+++ pear/DB_DataObject/DataObject.php Mon Mar 6 01:29:35 2006
@@ -15,7 +15,7 @@
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: DataObject.php,v 1.408 2006/03/02 02:41:37 alan_k Exp $
+ * @version CVS: $Id: DataObject.php,v 1.409 2006/03/06 01:29:35 alan_k Exp $
* @link http://pear.php.net/package/DB_DataObject
*/
@@ -3174,8 +3174,7 @@
// if
if (
in_array($DB->dsn['phptype'],array('mysql','mysqli')) &&
- ($obj->_database != $this->_database) &&
- strlen($this->_database)
+ strlen($obj->_database)
)
{
$joinAs = ($quoteIdentifiers ? $DB->quoteIdentifier($obj->_database) :
$obj->_database) . '.' . $joinAs;