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 2016/05/19 08:47:13 UTC
[jira] [Resolved] (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 ]
Thomas Mueller resolved OAK-4376.
---------------------------------
Resolution: Fixed
http://svn.apache.org/r1744535
> 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)