jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Question on query using jcr:path
Date Tue, 20 Feb 2007 08:56:20 GMT
> I saw in another thread in this forum a post that I can do a query like
> this:
> select * from nt:base where jcr:path = '/MyFolder/MyNode' OR
> jcr:path='MyFolder/MyOtherNode'.
> But when I try it I get an error:
> "Invalid combination of jcr:path clauses"
> But, It would to work, doesn't it?

two jcr:path clauses can only be combined with an OR to form an equivalent query 
for the descendant-or-self axis in XPath:

//element(foo, nt:base)

is translated into:

select * from nt:base where jcr:path = '/foo' or jcr:path like '/%/foo'


View raw message