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:04:12 UTC
[jira] [Created] (OAK-4376) XPath: queries starting with "//" are
not always converted correctly
Thomas Mueller created OAK-4376:
-----------------------------------
Summary: 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)