cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ksenia Khailenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAY-1426) EJBQL: ESCAPE fails after positional parameter
Date Tue, 13 Jul 2010 09:46:57 GMT

     [ https://issues.apache.org/jira/browse/CAY-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ksenia Khailenko updated CAY-1426:
----------------------------------

    Attachment: CAY-1426.-Fixed-incorrect-parsing-of-LIKE-ESCAPE-with-input-parameter.patch

> EJBQL: ESCAPE fails after positional parameter
> ----------------------------------------------
>
>                 Key: CAY-1426
>                 URL: https://issues.apache.org/jira/browse/CAY-1426
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 3.0RC3
>            Reporter: Andrew Lindesay
>            Priority: Minor
>         Attachments: 0001-CAY-1426.patch, CAY-1426.-Fixed-incorrect-parsing-of-LIKE-ESCAPE-with-input-parameter.patch,
unit-test-java-snippet.txt
>
>
> The EJBQL specification allows for an escape character to be supplied for the generated
SQL.  For example, the following would be valid;
> ...WHERE (((r.applicableTimestamp>=?1) AND (r.applicableTimestamp<?2)) AND (UPPER(r.message)
LIKE ?3 ESCAPE '|')) ORDER...
> The EJBQL parser is presently failing;
> 	... 70 more
> Caused by: org.apache.cayenne.ejbql.parser.ParseException: Encountered " "ESCAPE" "ESCAPE
"" at line 1, column 130.
> Was expecting:
>     ")" ...
>     
> 	at org.apache.cayenne.ejbql.parser.EJBQL.generateParseException(EJBQL.java:9419)

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


Mime
View raw message