[
https://issues.apache.org/jira/browse/OAK-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13459544#comment-13459544
]
Thomas Mueller commented on OAK-322:
------------------------------------
> At the very least, the error message should be more obvious.
True, the error message should at least contain the XPath query as well. I will
fix that.
Currently the XPath-to-SQL2 converter parses "[...]" as a condition, and never
as a same-name-sibling index. I didn't know about this feature :-)
> 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