mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1036: the Aggregate Expressions "AVG" | "MAX" | "MIN" | "SUM", should be followed by SimpleArithmeticExpression #1292
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Feb 16, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user jison:
the Aggregate Expressions "AVG" | "MAX" | "MIN" | "SUM", should be not only followed by StateFieldPathExpression , but also SimpleArithmeticExpression,
see http://www.doctrine-project.org/docs/orm/2.0/en/reference/dql-doctrine-query-language.html#aggregate-expressions
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
@doctrinebot commented on GitHub (Feb 19, 2011):
Comment created by @guilhermeblanco:
You are totally right.
I fixed on trunk repository. Thanks a lot for pointing out this issue. =)
@doctrinebot commented on GitHub (Feb 20, 2011):
Comment created by @beberlei:
Merged into 2.0.x also
@doctrinebot commented on GitHub (Feb 20, 2011):
Issue was closed with resolution "Fixed"