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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2016/06/10 10:35:22 UTC
[jira] [Closed] (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 ]
Davide Giannella closed OAK-4376.
---------------------------------
Bulk close for 1.5.3
> 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.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)