Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2733

Subquery parameters are incorrectly assigned

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.2
    • Fix Version/s: 3.1.0
    • Component/s: kernel
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      When parameters are used both outside and inside a sub-query, the parameter values are overwritten by other parameters.

      I did write up a test case, and provided a patch, but this patch has problems with replacing where clauses. Once a where clause is replaced, in either the root, or a sub query, params have to be cleaned up, but that doesn't clear out the _where property, which means they will not be rebuilt. But there are no tests that would catch that so far. That probably should be an extension of TestEdit#testEditParameterizedPredicateRemoved

        Attachments

        1. 1.diff
          8 kB
          Pawel Veselov

          Activity

            People

            • Assignee:
              struberg Mark Struberg
              Reporter:
              pveselov Pawel Veselov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: