protected function SelectQuery_sqlsrv::expressionContainsAggregate in Drupal driver for SQL Server and SQL Azure 7.2
Same name and namespace in other branches
- 7.3 sqlsrv/select.inc \SelectQuery_sqlsrv::expressionContainsAggregate()
Verify in an expression has an aggregate.
Needs some more work.
Parameters
mixed $expression:
Return value
bool|int
1 call to SelectQuery_sqlsrv::expressionContainsAggregate()
- SelectQuery_sqlsrv::__toString in sqlsrv/
select.inc - Implements PHP magic __toString method to convert the query to a string.
File
- sqlsrv/
select.inc, line 283
Class
Code
protected function expressionContainsAggregate($expression) {
return $this
->stripos_arr($expression, array(
'AVG(',
'GROUP_CONCAT(',
'COUNT(',
'MAX(',
'GROUPING(',
'GROUPING_ID(',
'COUNT_BIG(',
'CHECKSUM_AGG(',
'MIN(',
'SUM(',
'VAR(',
'VARP(',
'STDEV(',
'STDEVP(',
)) !== FALSE;
}