[CQF] Copy singleton element from array to avoid deletion by ValueGuard

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • QO 2023-02-20
    • 135
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When lowering a Disjunction of PartialSchemaRequirement, we build an array of the equality constants from the Disjunction tree and create a single eqMember PathCompare to encompass those comparisons. If the array only has one element in it at the end of iteration, we can instead pull that element out and make a Eq PathCompare. When doing this, we should copy the single tag/val from the array so when the array ValueGuard goes out of scope they are not deleted. 

            Assignee:
            Hana Pearlman
            Reporter:
            Hana Pearlman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: