Description
XPath queries starting with "//" are not always converted to the expected SQL-2 query. Examples:
//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
This is wrong. Instead, a join should be used.