Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0RC2
-
None
Description
EJBQL statement:
SELECT object(t) FROM User t WHERE (t.language.code = 'fr') AND ((upper(t.email) LIKE '%ANDREAS.HARTMANN@GMAIL.COM%') OR (upper(t.email) LIKE '%NOBBY@MACBAY.DE%'))
Resulting query:
SELECT COUNT AS sc0 FROM public.user t0 INNER JOIN public.language t1 ON (t0.language = t1.code) WHERE t1.code = ? AND
{fn UCASE( t0.email)} LIKE ? OR {fn UCASE( t0.email)}LIKE ?
In the resulting query, the brackets surrounding the OR clause are lost.