mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-680: Complex Mathematical Expressions in DQL Subselects #837
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 (Jul 10, 2010).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user @beberlei:
It seems complex mathematical expressions are handled differently in DQL Subselects then in normal Selects:
Here the first test fails and the second passes. The second has the nested SQL running alone. The failure message is:
@doctrinebot commented on GitHub (Jul 11, 2010):
Comment created by @beberlei:
The problem seems to be in SelectExpression(). Functions are only detected in isolation, i.e. everything after the first function is ignored.
@doctrinebot commented on GitHub (Aug 10, 2010):
Comment created by @guilhermeblanco:
Patch that fixes the issue.
However, I am not 100% if the alias (sclr) of subquery select expression should be generated and added to RSM.
Can anyone chat with me tomorrow and agree on this patch?
@doctrinebot commented on GitHub (Aug 11, 2010):
Comment created by @guilhermeblanco:
New patch
@doctrinebot commented on GitHub (Aug 11, 2010):
Comment created by @guilhermeblanco:
In
84b9eda17cI have committed a fix to this issue.@doctrinebot commented on GitHub (Aug 11, 2010):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/05f78980b5c88d1e967f