cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Castan (JIRA)" <>
Subject [jira] [Commented] (CXF-5739) FIQL: java.sql.Timestamp no taken into account
Date Wed, 14 May 2014 15:23:16 GMT


Romain Castan commented on CXF-5739:

the simplest is used example:
||Expression value||SQL format||
|{code}name==bar{code}|{code}name = 'bar'{code}|
|{code}name==*bar{code}|{code}name LIKE '%bar'{code}|
|{code}name==*bar*{code}|{code}name LIKE '%bar%'{code}|
|{code}name==*b*ar*{code}|{code}name LIKE '%b%ar%'{code}|
|{code}name==%bar{code}|{code}name = '%bar'{code}|
|{code}name==*%bar{code}|{code}name LIKE '%\%bar' ESCAPE '\'{code}|
|{code}name==b_ar{code}|{code}name = 'b_ar'{code}|
|{code}name==b_ar*{code}|{code}name LIKE 'b\_ar%' ESCAPE '\'{code}|

To resume:
If in FIQL expression there is not '*', the SQL format must not use 'LIKE' expression but
'=' expression.
If in FIQL expression value there is '*', the SQL format must have 'LIKE' expression and if
there is at least one escape characters, the SQL format must contains 'ESCAPE' expression

> FIQL: java.sql.Timestamp no taken into account
> ----------------------------------------------
>                 Key: CXF-5739
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.0.0-milestone1, 3.0.0-milestone2, 2.7.11
>            Reporter: Romain Castan
>              Labels: patch
>         Attachments: patch.txt
> Problem when the FIQL expression refers an attribute with Timestamp type.
> Currently, only java.util.Date works.

This message was sent by Atlassian JIRA

View raw message