Skip to content
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

Fix UpdateExpression.VisitChildren to visit the setter column #33948

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

roji
Copy link
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
7 checks passed
@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