EF Core 2.2.1 update from 2.1, undeclared scalar variable name. #14550
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
regression
type-bug
Milestone
System.Data.SqlClient.SqlException: The variable name '@__courtCase_Court_Organization_0_Id' has already been declared. Variable names must be unique within a query batch or stored procedure.
Must declare the scalar variable "@__efmJudge_EfmId_3".
This seems to happen in a block of code that looks like this:
EF Core 2.1 worked fine. Upon upgrading to 2.2, this began breaking. Yes, that's clearly a dumb query. Upon removing the duplicate Where expression, it works fine. Still, a regression, and a bug, somewhere.
The text was updated successfully, but these errors were encountered: