jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: Can the children of a non-visible node be listed?
Date Mon, 22 Apr 2013 09:08:51 GMT

On Mon, Apr 22, 2013 at 11:28 AM, Lukas Eder <lukas.eder@gmail.com> wrote:
> I had recently thought about something similar, in another context.
> Specifically, should the following queries return "bar" or not?
>     SELECT * FROM [nt:base] AS n
> Or
>     SELECT * FROM [nt:base] AS n
>     WHERE ISCHILDNODE(n, '/foo')

I would have them return the "bar" node, based on the fact that both
the ISDESCENDANTNODE and ISCHILDNODE constraints can be evaluated
syntactically by looking only at the path "/foo/bar" without reading
anything from the "foo" node.


Jukka Zitting

View raw message