Query: SelectExpression.Update always creates new instance of SelectExpression without checking if anything changed #31276
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-cleanup
type-enhancement
Milestone
This is not how any other Update methods on SqlExpression work. We should figure out if it was intentional and if it's safe to make changes. This may cause functional changes because Equals method on SelectExpression is (intentionally) implemented as ReferenceEquals. We could be missing some optimizations by "updating" the same SelectExpression in effect creating a copy, that we can't recognize as being equivalent anymore.
The text was updated successfully, but these errors were encountered: