Happyr / Doctrine-Specification

This library gives you a new way for writing queries. Using the Specification pattern you will get small Specification classes that are highly reusable.
MIT License
445 stars 40 forks source link

Allow use DISTINCT in aggregate functions #286

Closed peter-gribanov closed 3 years ago

peter-gribanov commented 3 years ago

Allow use DISTINCT in AVG, MAX, MIN, SUM aggregate functions.

Doctrine Aggregate Expressions

AggregateExpression ::= ("AVG" | "MAX" | "MIN" | "SUM" | "COUNT") "(" ["DISTINCT"] SimpleArithmeticExpression ")"

Upgrade