Skip to content

Commit

Permalink
Fix parenthesis example
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioBatSilva committed Apr 6, 2013
1 parent cef2089 commit 2ad6565
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ That's conceptually wrong, since it might result in wrong values. For example:

The DQL:

SELECT 100/(2*2) FROM MyEntity
SELECT 100 / ( 2 * 2 ) FROM MyEntity

Before 2.4 it generates the SQL:

SELECT 100/2*2 my_entity
SELECT 100 / 2 * 2 FROM my_entity

Now parenthesis are considered, the previous DQL will generate:

SELECT (100/2*2) my_entity
SELECT 100 / (2 * 2) FROM my_entity

# Upgrade to 2.3

Expand Down

0 comments on commit 2ad6565

Please sign in to comment.