svn: /pear/packages/DB_DataObject/trunk/ DataObject.php

From: Date: Mon, 28 Nov 2011 05:14:45 +0000
Subject: svn: /pear/packages/DB_DataObject/trunk/ DataObject.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-63121@lists.php.net to get a copy of this message
alan_k Mon, 28 Nov 2011 05:14:45 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=320073 Log: more fixes to correctly support portability in joinAdd Changed paths: U pear/packages/DB_DataObject/trunk/DataObject.php Modified: pear/packages/DB_DataObject/trunk/DataObject.php =================================================================== --- pear/packages/DB_DataObject/trunk/DataObject.php 2011-11-28 05:13:46 UTC (rev 320072) +++ pear/packages/DB_DataObject/trunk/DataObject.php 2011-11-28 05:14:45 UTC (rev 320073) @@ -3642,7 +3642,7 @@ // we default to joining as the same name (this is remvoed later..) if ($joinAs === false) { - $joinAs = $obj->__table; + $joinAs = $obj->tableName(); } $quoteIdentifiers = !empty($_DB_DATAOBJECT['CONFIG']['quote_identifiers']); @@ -3650,8 +3650,8 @@ // not sure how portable adding database prefixes is.. $objTable = $quoteIdentifiers ? - $DB->quoteIdentifier($obj->__table) : - $obj->__table ; + $DB->quoteIdentifier($obj->tableName()) : + $obj->tableName() ; $dbPrefix = ''; if (strlen($obj->_database) && in_array($DB->dsn['phptype'],array('mysql','mysqli'))) { @@ -3796,7 +3796,7 @@ $fullJoinAs = ''; - $addJoinAs = ($quoteIdentifiers ? $DB->quoteIdentifier($obj->__table) : $obj->__table) != $joinAs; + $addJoinAs = ($quoteIdentifiers ? $DB->quoteIdentifier($obj->tableName()) : $obj->tableName()) != $joinAs; if ($addJoinAs) { // join table a AS b - is only supported by a few databases and is probably not needed // , however since it makes the whole Statement alot clearer we are leaving it in

« previous php.pear.cvs (#63121) next »