Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-237 Run Jackrabbit query tests
  3. OAK-322

XPath to SQL-2 transformation error for "//*[0]" (same name sibling index)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • core, query
    • None

    Description

      Test class XPathAxisTest: tests #testIndex0Descendant to #testIndex3Descendant.

      The used xpath query is

      /jcr:root/testroot//*[0]
      

      which apparently gets transformed into a bad SQL2 query, that yields the following error at execute time:

      Caused by: java.text.ParseException: Query: select [jcr:path], [jcr:score], * from [nt:base] as a where 0(*)is not null and isdescendantnode(a, '/testroot'); expected: NOT, (
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stillalex Alex Deparvu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: