Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-334

Order of RETURN triples in XMLQuery changes "where" element set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 1.1
    • xmlps
    • None

    Description

      Given an XMLQuery:

      (foo = 'yes' OR bar = 'no) AND RETURN = foo
      

      The correct "where" element list is:

      foo,'yes',EQ,bar,'no',EQ,OR
      

      Assume the following are semantically equivalent to the original query: (if they are not equivalent, remove them from the bug description)

      (1) RETURN = foo AND foo = 'yes' OR bar = 'no'
      (2) foo = 'yes' OR bar = 'no' AND RETURN = foo
      (3) RETURN = foo AND (foo = 'yes' OR bar = 'no')
      (4) RETURN = foo AND (foo = 'yes' OR bar = 'no') AND RETURN = bar
      

      The "where" element list for each query above is:

      (1) foo,'yes',EQ,bar,'no',EQ,OR (this is correct)
      (2) foo,'yes',EQ,bar,'no',EQ
      (3) foo,'yes',EQ,bar,'no',EQ,OR,AND
      (4) foo,'yes',EQ,bar,'no',EQ,OR,AND
      

      Queries 2,3 and 4 are not parsed correctly.

      Attachments

        Activity

          People

            chrismattmann Chris A. Mattmann
            rickdn Ricky Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: