Allowing expression in COUNT() DQL aggregation functions

This commit is contained in:
Marco Pivetta
2014-08-27 01:56:11 +02:00
parent 02ba144c8d
commit 097840dc93

View File

@@ -2962,9 +2962,7 @@ class Parser
$isDistinct = true;
}
$pathExp = ($lookaheadType === Lexer::T_COUNT)
? $this->SingleValuedPathExpression()
: $this->SimpleArithmeticExpression();
$pathExp = $this->SimpleArithmeticExpression();
$this->match(Lexer::T_CLOSE_PARENTHESIS);