jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Franchet <raph...@anyware-tech.com>
Subject Re: Xpath query, jcr:like and character '
Date Mon, 24 Oct 2005 16:47:28 GMT
Thank you marcel.

regard,

Raphaël

Marcel Reutegger a écrit :
> Hi Raphaël,
> 
> this is a bug in the XPath query builder, it does not unescape the quote 
> :-/
> 
> I've just committed a fix. svn revision: 328092
> 
> thanks for reporting this issue!
> 
> regards
>  marcel
> 
> Raphaël Franchet wrote:
> 
>> Hello,
>>
>> Following the spec 6.6.4.9, to find node with title containing the 
>> word - test'test -, this should work:
>> createQuery("//*[jcr:like(@title, '%test''test%')]", 
>> Query.XPATH).execute()
>>
>> but it does not find my node with a title - test'test -.
>>
>> ps: it works fine with a wildcard character: 
>> createQuery("//*[jcr:like(@title, '%test_test%')]", 
>> Query.XPATH).execute()
>>
>> what is wrong ?
>> isn't escaping of ' not done with '' ?
>>
>> thanks,
> 
> 

Mime
View raw message