cvs: pear /DB_DataObject DataObject.php

From: Date: Sun, 18 Sep 2005 03:41:06 +0000
Subject: cvs: pear /DB_DataObject DataObject.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-34841@lists.php.net to get a copy of this message
alan_k Sat Sep 17 23:41:06 2005 EDT Modified files: /pear/DB_DataObject DataObject.php Log: small typo in list of databases that use AS http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject.php?r1=1.373&r2=1.374&ty=u Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.373 pear/DB_DataObject/DataObject.php:1.374 --- pear/DB_DataObject/DataObject.php:1.373 Sat Sep 17 00:51:50 2005 +++ pear/DB_DataObject/DataObject.php Sat Sep 17 23:40:59 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.373 2005/09/17 04:51:50 alan_k Exp $ + * @version CVS: $Id: DataObject.php,v 1.374 2005/09/18 03:40:59 alan_k Exp $ * @link http://pear.php.net/package/DB_DataObject */ @@ -3041,7 +3041,10 @@ $fullJoinAs = ''; $addJoinAs = ($quoteIdentifiers ? $DB->quoteIdentifier($obj->__table) : $obj->__table) != $joinAs; if ($addJoinAs) { - $fullJoinAs = in_array($DB->dsn["phptype"],array('mysql','mysql','pgsql')) ? "AS {$joinAs}" : $joinAs; + // 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 + // for those databases. + $fullJoinAs = in_array($DB->dsn["phptype"],array('mysql','mysqli','pgsql')) ? "AS {$joinAs}" : $joinAs; } else { // if if (

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