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 Xpath query, jcr:like and character '
Date Mon, 24 Oct 2005 13:31:33 GMT
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,
-- 

Raphaƫl FRANCHET
IT
ANYWARE TECHNOLOGIES
Tel: +33 (0)5 61 00 73 47
Fax : +33 (0)5 61 00 51 46
www.anyware-tech.com

Mime
View raw message