1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Fix parenthesis example

This commit is contained in:
Fabio B. Silva 2013-04-06 14:53:36 -03:00
parent cef20890dc
commit 2ad6565632

View File

@ -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