DDC-2188: DQL arithmetic priority is not considered in expression 'a/(b*c)' #2755

Closed
opened 2026-01-22 14:02:34 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Dec 5, 2012).

Jira issue originally created by user mdehghani:

A DQL query that contains an arithmetic expression like 'a/(bc)' will be compiled to 'a/b*c' in SQL and therefore the result of '100/(22)' will be 100, instead of 25.

Note: I have tested it by mysql only

Originally created by @doctrinebot on GitHub (Dec 5, 2012). Jira issue originally created by user mdehghani: A DQL query that contains an arithmetic expression like 'a/(b**c)' will be compiled to 'a/b*c' in SQL and therefore the result of '100/(2**2)' will be 100, instead of 25. Note: I have tested it by mysql only
admin added the Bug label 2026-01-22 14:02:34 +01:00
admin closed this issue 2026-01-22 14:02:34 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 16, 2013):

Comment created by @ocramius:

Being handled in DDC-2355

@doctrinebot commented on GitHub (Mar 16, 2013): Comment created by @ocramius: Being handled in [DDC-2355](http://www.doctrine-project.org/jira/browse/DDC-2355)
Author
Owner

@doctrinebot commented on GitHub (Apr 6, 2013):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Apr 6, 2013): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2755