You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2019/02/14 14:15:00 UTC

[jira] [Resolved] (OPENJPA-2733) Subquery parameters are incorrectly assigned

     [ https://issues.apache.org/jira/browse/OPENJPA-2733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved OPENJPA-2733.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.1

Patch assigned and improved - thanks Pawel!

> Subquery parameters are incorrectly assigned
> --------------------------------------------
>
>                 Key: OPENJPA-2733
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2733
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 2.4.2
>            Reporter: Pawel Veselov
>            Assignee: Mark Struberg
>            Priority: Major
>             Fix For: 3.0.1
>
>         Attachments: 1.diff
>
>
> 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)