You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Romain Castan (JIRA)" <ji...@apache.org> on 2014/04/28 06:32:14 UTC

[jira] [Comment Edited] (CXF-5713) FIQL: the % character is not taken into account in FIQL expression

    [ https://issues.apache.org/jira/browse/CXF-5713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13982469#comment-13982469 ] 

Romain Castan edited comment on CXF-5713 at 4/28/14 4:31 AM:
-------------------------------------------------------------

Yes, I had the same bug when I wrote my unit test.
I read that It's a bug with HSQLDB, see http://sourceforge.net/p/hsqldb/discussion/73674/thread/e4b826b7/ (read the comment of Fred Toussi) and http://sourceforge.net/p/hsqldb/bugs/1309/
I tested the patch with Oracle, the patch seems to work.
I hope that HSQLDB will create a new release.


was (Author: tolosa-rom):
Yes, I had the same bug when I wrote my unit test for my professional project.
I read that It's a bug with HSQLDB, see http://sourceforge.net/p/hsqldb/discussion/73674/thread/e4b826b7/ (read the comment of Fred Toussi) and http://sourceforge.net/p/hsqldb/bugs/1309/
I tested the patch with Oracle, the patch seems to work.
I hope that HSQLDB will create a new release.

> FIQL: the % character is not taken into account in FIQL expression
> ------------------------------------------------------------------
>
>                 Key: CXF-5713
>                 URL: https://issues.apache.org/jira/browse/CXF-5713
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.7.11
>            Reporter: Romain Castan
>              Labels: patch
>         Attachments: patch.txt
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> When there is the character '%' in the expression FIQL the JPA query is not valid.
> Currently, for this following expression FIQL:
> _s=name==apache%software*
> the generated SQL query is:
> ... where name like 'apache%software%'
> while the generated SQL query should be:
> ... where name like 'apache\%sofware%' escape '\' 



--
This message was sent by Atlassian JIRA
(v6.2#6252)