jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mueller <muel...@adobe.com>
Subject Re: Converting XPath to SQL-2
Date Tue, 03 Apr 2012 12:09:00 GMT
Hi,

>The //* expression matches all nodes, so no need to map it to any
>specific constraint.

I see it was a bad example... What if it's not the root itself, for
example:

    /jcr:root/content//*[@test='hello']

This XPath query includes the node "content". The SQL-2 query

    select * from [nt:base] where [test]='hello' and
isdescendantnode('/content')

would exclude the node "content" itself AFAIK. So what would be the right
SQL-2 query here?

Regards,
Thomas


Mime
View raw message