[
https://issues.apache.org/jira/browse/OAK-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Marth updated OAK-322:
------------------------------
Fix Version/s: 0.20
> XPath to SQL-2 transformation error for "//*[0]" (same name sibling index)
> --------------------------------------------------------------------------
>
> Key: OAK-322
> URL: https://issues.apache.org/jira/browse/OAK-322
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Components: core, query
> Reporter: Alex Parvulescu
> Priority: Minor
> Fix For: 0.20
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)