Skip to content

Expand composite id for (not) in queries targeting association properties.#2284

Open
christophstrobl wants to merge 4 commits intomainfrom
issue/2276
Open

Expand composite id for (not) in queries targeting association properties.#2284
christophstrobl wants to merge 4 commits intomainfrom
issue/2276

Conversation

@christophstrobl
Copy link
Copy Markdown
Member

This PR makes sure to expand composite ids used in IN/NOT IN queries on an association property.
It also addresses an issue in the combination logic for not in that may lead to missing out matching results.

Future development may consider database specific tuple syntax for more readable statements and potentially improved server side query planning.

Closes: #2276

QueryMapper now makes sure to expand ids consisting of more than one value into an AND/OR combined statement.
Prior to this change the value was pushed down unmodified to create an IN statement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect SQL for AggregateReference with composite id in findBy...In

3 participants