Skip to content

Fix some Contains subqueries failures with Linq #3212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

gliljas
Copy link
Member

@gliljas gliljas commented Dec 19, 2022

This is most likely an old regression, where the smartness around LINQ Contains queries ignores the fact that source to the Contains can contain body clauses. In my case it was the use of MappedAs that was left hanging in the querymodel, even though removeMappedAsCalls was set to true, but I guess there may be other issues.

renovate bot and others added 2 commits November 30, 2022 20:43
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@gliljas gliljas requested a review from maca88 December 19, 2022 16:55
@fredericDelaporte
Copy link
Member

It was not clear for me if this was an improvement or a bug fix. Checking the test case, the query throws without the change. So, labeling as bug.

@gliljas
Copy link
Member Author

gliljas commented Dec 24, 2022

Yes, it's a bug.

@fredericDelaporte
Copy link
Member

Though not a recent regression, should we target 5.4.1 instead of master?

@fredericDelaporte fredericDelaporte changed the title MappedAs was left hanging in subqueries Fix some subqueries failures with Linq Dec 31, 2022
@bahusoid bahusoid changed the base branch from master to 5.4.x March 12, 2023 13:55
@bahusoid bahusoid changed the title Fix some subqueries failures with Linq Fix some Contains subqueries failures with Linq Mar 13, 2023
bahusoid added a commit that referenced this pull request Apr 2, 2023
We should always try to detect parameters. And parameter detection shouldn't skip query transformation (Fixes failure case from #3212)

Replaces #3212
@bahusoid
Copy link
Member

bahusoid commented Apr 2, 2023

Replaced by #3274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants