1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +03:00

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; $isDistinct = true;
} }
$pathExp = ($lookaheadType === Lexer::T_COUNT) $pathExp = $this->SimpleArithmeticExpression();
? $this->SingleValuedPathExpression()
: $this->SimpleArithmeticExpression();
$this->match(Lexer::T_CLOSE_PARENTHESIS); $this->match(Lexer::T_CLOSE_PARENTHESIS);