cvs: pear /DB_DataObject DataObject.php
| From: | Alan Knowles | Date: | Thu, 02 Mar 2006 02:41:37 +0000 |
| Subject: | cvs: pear /DB_DataObject DataObject.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38830@lists.php.net to get a copy of this message | ||
alan_k Thu Mar 2 02:41:37 2006 UTC
Modified files:
/pear/DB_DataObject DataObject.php
Log:
quote identifiers for format in selectAs() - patch by Marco Kaiser
http://cvs.php.net/viewcvs.cgi/pear/DB_DataObject/DataObject.php?r1=1.407&r2=1.408&diff_format=u
Index: pear/DB_DataObject/DataObject.php
diff -u pear/DB_DataObject/DataObject.php:1.407 pear/DB_DataObject/DataObject.php:1.408
--- pear/DB_DataObject/DataObject.php:1.407 Wed Mar 1 01:57:28 2006
+++ pear/DB_DataObject/DataObject.php Thu Mar 2 02:41:37 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.407 2006/03/01 01:57:28 alan_k Exp $
+ * @version CVS: $Id: DataObject.php,v 1.408 2006/03/02 02:41:37 alan_k Exp $
* @link http://pear.php.net/package/DB_DataObject
*/
@@ -852,6 +852,7 @@
$this->_connect();
$DB = &$_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5];
$s = $DB->quoteIdentifier($s);
+ $format = $DB->quoteIdentifier($format);
}
foreach ($from as $k) {
$this->selectAdd(sprintf("{$s}.{$s} as {$format}",$table,$k,$k));