Skip to content

Fix UpdateExpression.VisitChildren to visit the setter column#33948

Merged
roji merged 1 commit intodotnet:mainfrom
roji:FixUpdateVisitation
Jun 11, 2024
Merged

Fix UpdateExpression.VisitChildren to visit the setter column#33948
roji merged 1 commit intodotnet:mainfrom
roji:FixUpdateVisitation

Conversation

@roji
Copy link
Copy Markdown
Member

@roji roji commented Jun 10, 2024

The problem here was a bug in UpdateExpression.VisitChildren: for column setters, it was visiting the values but not the columns. In 9.0, our alias post-processing logic now replaces columns in the entire tree when rewriting aliases, but the columns inside UpdateExpression weren't being changed because of this, causing incorrect SQL.

Fixes #33937

@roji roji requested a review from a team June 10, 2024 10:11
@roji roji enabled auto-merge (squash) June 10, 2024 10:25
@roji roji merged commit 31a8239 into dotnet:main Jun 11, 2024
@roji roji deleted the FixUpdateVisitation branch June 11, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Table alias regression on ExecuteUpdate on SQL Server

2 participants