Skip to content

Conversation

roji
Copy link
Member

@roji roji commented Oct 7, 2025

Fixes #36917

Description

#35113 (merged earlier in 10) simplifies EF's SQL parameter names; among other things, it performs uniquification (ensuring that parameters have unique names) only when needed, rather than the previous approach which always added suffixes to prevent clashes (and had issues).

However, the code currently considers parameter names to be the same - and thus in need of uniquification - only when they're case-sensitive-equal; if two parameter names are the same *except for case differences, they're considered different and are therefore not uniquified. Since some databases (e.g. SQL Server) are case-insensitive, this causes the query to fail as it contains two parameters with the "same" name.

Customer impact

LINQ queries which involve two parameters that have the same name except for case differences fail.

How found

Customer reported.

Regression

Yes, from 9.

Testing

Added.

Risk

Very low, one-line targeted change to code already changed earlier in 10.

@roji roji added the ask-mode label Oct 7, 2025
@roji roji requested a review from a team as a code owner October 7, 2025 07:19
@roji roji requested review from artl93 and jeffschwMSFT October 7, 2025 07:26
@roji roji force-pushed the CaseInsensitiveParamNames branch from 0141bc3 to 16d80df Compare October 7, 2025 08:59
@roji roji force-pushed the CaseInsensitiveParamNames branch from 16d80df to 81bd171 Compare October 7, 2025 08:59
@roji
Copy link
Member Author

roji commented Oct 8, 2025

/azp run

@roji roji enabled auto-merge (squash) October 8, 2025 21:28
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@roji roji merged commit dea93f5 into dotnet:release/10.0 Oct 8, 2025
7 checks passed
@roji roji deleted the CaseInsensitiveParamNames branch October 8, 2025 23:38
@roji
Copy link
Member Author

roji commented Oct 9, 2025

/cc @jeffschwMSFT

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants