cxf-issues mailing list archives

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

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

Romain Castan edited comment on CXF-5739 at 5/14/14 3:23 PM:
-------------------------------------------------------------

Hi,
the simplest is used example:
||FIQL 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



was (Author: tolosa-rom):
Hi,
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: https://issues.apache.org/jira/browse/CXF-5739
>             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
(v6.2#6252)

Mime
View raw message