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 "Julian Reschke (JIRA)" <ji...@apache.org> on 2016/11/10 09:45:00 UTC
[jira] [Updated] (OAK-4376) XPath: queries starting with "//" are
not always converted correctly
[ https://issues.apache.org/jira/browse/OAK-4376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke updated OAK-4376:
--------------------------------
Fix Version/s: 1.6
> XPath: queries starting with "//" are not always converted correctly
> --------------------------------------------------------------------
>
> Key: OAK-4376
> URL: https://issues.apache.org/jira/browse/OAK-4376
> Project: Jackrabbit Oak
> Issue Type: Bug
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Fix For: 1.6, 1.5.3
>
>
> XPath queries starting with "//" are not always converted to the expected SQL-2 query. Examples:
> {noformat}
> //element(*, oak:QueryIndexDefinition)/*
> select [jcr:path], [jcr:score], * from [oak:QueryIndexDefinition] as a
> //element(*, oak:QueryIndexDefinition)//*
> select [jcr:path], [jcr:score], * from [oak:QueryIndexDefinition] as a
> {noformat}
> This is wrong. Instead, a join should be used.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)