You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Edoardo Causarano (JIRA)" <ji...@apache.org> on 2013/06/16 12:45:21 UTC
[jira] [Commented] (JCR-994) Support XPath union operator in
queries (both SQL and XPath)
[ https://issues.apache.org/jira/browse/JCR-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13684614#comment-13684614 ]
Edoardo Causarano commented on JCR-994:
---------------------------------------
Wouldn't this be implementable as follows:
SELECT * FROM [nt:base] AS blah WHERE " +
"ISDESCENDANTNODE(blah, '/a/b/c/d') OR " +
"ISDESCENDANTNODE(blah, '/a/e/f')", Query.JCR_SQL2);
Best,
Edoardo
> Support XPath union operator in queries (both SQL and XPath)
> ------------------------------------------------------------
>
> Key: JCR-994
> URL: https://issues.apache.org/jira/browse/JCR-994
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-core, query
> Affects Versions: 1.3
> Reporter: David Garcia
> Priority: Minor
>
> For example, the following query:
> SELECT * FROM nt:base WHERE jcr:path = '/jcr:root/a/b/c/d' OR jcr:path = '/jcr:root/a/e/f'
> will fail with the following exception:
> javax.jcr.query.InvalidQueryException: Invalid combination of jcr:path clauses
> Please see also:
> http://mail-archives.apache.org/mod_mbox/jackrabbit-dev/200604.mbox/%3C44523C57.2030603@gmx.net%3E
> And:
> http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/6476
> Regards,
> David
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira