Skip to content


DDC-1036: the Aggregate Expressions "AVG" | "MAX" | "MIN" | "SUM", should be followed by SimpleArithmeticExpression #1625

doctrinebot opened this Issue · 3 comments

2 participants


Jira issue originally created by user jison:

the Aggregate Expressions "AVG" | "MAX" | "MIN" | "SUM", should be not only followed by StateFieldPathExpression , but also SimpleArithmeticExpression,

i found it can not execute dql like
select sum(c.quantity * c.price) total_price from cart c

i think, this should be a bug


Comment created by @guilhermeblanco:

You are totally right.

I fixed on trunk repository. Thanks a lot for pointing out this issue. =)


Comment created by @beberlei:

Merged into 2.0.x also


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0.2 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.