You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2012/10/18 15:08:03 UTC

[jira] [Commented] (OAK-322) XPath descendant index - sql2 transformation error

    [ https://issues.apache.org/jira/browse/OAK-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478975#comment-13478975 ] 

Thomas Mueller commented on OAK-322:
------------------------------------

I wonder what should we do about this, if we don't (fully?) support same-name-siblings:

- Should we throw a better error message
- Should we try to support it and rely on the fact that there are no same-name-siblings
                
> XPath descendant index - sql2 transformation error
> --------------------------------------------------
>
>                 Key: OAK-322
>                 URL: https://issues.apache.org/jira/browse/OAK-322
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: jcr
>            Reporter: Alex Parvulescu
>
> Test class XPathAxisTest: tests #testIndex0Descendant to #testIndex3Descendant.
> The used xpath query is 
> {noformat}
> /jcr:root/testroot//*[0]
> {noformat}
> which apparently gets transformed into a bad SQL2 query, that yields the following error at execute time:
> {noformat}
> Caused by: java.text.ParseException: Query: select [jcr:path], [jcr:score], * from [nt:base] as a where 0(*)is not null and isdescendantnode(a, '/testroot'); expected: NOT, (
> {noformat}

--
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