-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Foreign Key: Add support for Multi Table and Multi Target Update Statement #15523
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15523 +/- ##
==========================================
- Coverage 67.41% 65.72% -1.70%
==========================================
Files 1560 1560
Lines 192752 194497 +1745
==========================================
- Hits 129952 127830 -2122
- Misses 62800 66667 +3867 ☔ View full report in Codecov by Sentry. |
Build on top of #15504. I will rebase once that PR is merged. |
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
def1196
to
30bff59
Compare
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is so small! Approving as this looks very clean, and based on the tests.
@@ -151,8 +151,17 @@ func (fz *fuzzer) generateInsertDMLQuery(insertType string) string { | |||
} | |||
} | |||
|
|||
// generateUpdateDMLQuery generates an UPDATE query from the parameters for the fuzzer. | |||
// generateUpdateDMLQuery generates a UPDATE query from the parameters for the fuzzer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an
was just fine? Later in the PR you actually turn a
to an
😅
Description
This PR adds support for tables with foreign key in multi-table and multi-target update statements.
E.g.
update user join music on user.foo = music.bar set user.id = 4, music.col = 5 where user.baz = 20
Related Issue(s)
Checklist