Skip to content

Improve LINQ Contains subquery parameter detection #3274

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

Merged
merged 6 commits into from
Apr 2, 2023

Conversation

bahusoid
Copy link
Member

@bahusoid bahusoid commented Mar 31, 2023

Replaces #3212
We should always try to detect parameters. And parameter detection shouldn't skip query transformation.

Also fixes SqlServerCe test for #3271

@@ -648,6 +649,9 @@ where sheet.Users.Contains(user)
[Test]
public void TimesheetsWithEnumerableContainsOnSelect()
{
if (Dialect is MsSqlCeDialect)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes SqlServerCe test for #3271

See: https://teamcity.jetbrains.com/buildConfiguration/bt1175/4111194?buildTab=tests&expandedTest=build%3A%28id%3A4111194%29%2Cid%3A29811

System.IndexOutOfRangeException : Index was outside the bounds of the array.
at System.Data.SqlServerCe.SqlCeCommand.GetQueryParameters(IntPtr pQpCommand)
at System.Data.SqlServerCe.SqlCeCommand.CreateDataBindings()
at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan()

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