Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4376

XPath: queries starting with "//" are not always converted correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.3, 1.6.0
    • None
    • None

    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.

      Attachments

        Activity

          People

            thomasm Thomas Mueller
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: