cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <>
Subject [jira] Updated: (CAY-1371) EJBQL query doesn't preserve grouping by brackets
Date Sun, 24 Jan 2010 10:02:18 GMT


Andrey Razumovsky updated CAY-1371:

    Attachment: 1371.txt

Patch that fixes the issue. Not committing it just yet, because I'm not sure about patterns
of expression processing. Is it correct to call jjtGetParent() ? If so, why isn't there a
method with more suitable name?

> EJBQL query doesn't preserve grouping by brackets
> -------------------------------------------------
>                 Key: CAY-1371
>                 URL:
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.0RC2
>            Reporter: Andreas Hartmann
>         Attachments: 1371.txt, CAY-1371.patch
> EJBQL statement:
> SELECT object(t) FROM User t WHERE (t.language.code = 'fr') AND ((upper( LIKE
> 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(} LIKE ? OR {fn UCASE(} LIKE
> In the resulting query, the brackets surrounding the OR clause are lost.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message