cvs: pear /MDB/MDB Common.php
| From: | Lukas Smith | Date: | Wed, 04 Dec 2002 10:16:16 +0000 |
| Subject: | cvs: pear /MDB/MDB Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7737@lists.php.net to get a copy of this message | ||
lsmith Wed Dec 4 05:16:16 2002 EDT
Modified files:
/pear/MDB/MDB Common.php
Log:
added parameter to subSelect() that was added to the mysql driver a while back
Index: pear/MDB/MDB/Common.php
diff -u pear/MDB/MDB/Common.php:1.78 pear/MDB/MDB/Common.php:1.79
--- pear/MDB/MDB/Common.php:1.78 Sat Nov 23 18:51:25 2002
+++ pear/MDB/MDB/Common.php Wed Dec 4 05:16:16 2002
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.78 2002/11/23 23:51:25 lsmith Exp $
+// $Id: Common.php,v 1.79 2002/12/04 10:16:16 lsmith Exp $
/**
* @package MDB
@@ -1424,13 +1424,19 @@
// {{{ subSelect()
/**
- * simple subselect emulation
+ * simple subselect emulation: leaves the query untouched for all RDBMS
+ * that support subselects
*
- * @param string $query the SQL query for the subselect
- * @return string the query
* @access public
+ *
+ * @param string $query the SQL query for the subselect that may only
+ * return a column
+ * @param string $quote determines if the data needs to be quoted before
+ * being returned
+ *
+ * @return string the query
*/
- function subSelect($query)
+ function subSelect($query, $quote = FALSE)
{
if ($this->supported['SubSelects'] == 1) {
return ($query);