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

XPath to SQL-2 conversion error for "element(..)"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.9
    • query
    • None

    Description

      The following XPath query is not converted correctly:

      //element(hello, nt:base)
      

      It should be converted to

      select [jcr:path], [jcr:score], * from [nt:base] as a 
      where name(a) = 'hello' /* xpath: //element(hello, nt:base) */
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: