Author: ael
Date: 2006-06-26 21:21:09 +0400 (Mon, 26 Jun 2006)
New Revision: 1807
Modified:
trunk/core/OSQL/SQLFunction.class.php
Log:
don't fail on SelectQuery as function argument
Modified: trunk/core/OSQL/SQLFunction.class.php
===================================================================
--- trunk/core/OSQL/SQLFunction.class.php 2006-06-26 00:15:19 UTC (rev 1806)
+++ trunk/core/OSQL/SQLFunction.class.php 2006-06-26 17:21:09 UTC (rev 1807)
@@ -66,6 +66,8 @@
// we're not using * anywhere but COUNT()
elseif ($arg === '*')
$args[] = $dialect->quoteValue($arg);
+ elseif ($arg instanceof SelectQuery)
+ $args[] = '('.$dialect->fieldToString($arg).')';
else
$args[] = $dialect->fieldToString($arg);
}
Received on Mon Jun 26 2006 - 21:21:09 MSD
This archive was generated by hypermail 2.2.0 : Sat Oct 27 2007 - 20:16:09 MSD