-
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
mysql: Handle more deprecated SQL commands #15907
mysql: Handle more deprecated SQL commands #15907
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
|
65b4bcf
to
c0cbba2
Compare
This deals with more deprecated SQL commands that now uses different terminology on newer MySQL versions. Also refactors things to reduce some duplication and to simplify some logic. We now treat the latest syntax as default and keep older syntax for older versions as needed explicitly. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
c0cbba2
to
43b33fb
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15907 +/- ##
==========================================
- Coverage 68.43% 68.42% -0.02%
==========================================
Files 1559 1560 +1
Lines 196753 196920 +167
==========================================
+ Hits 134657 134742 +85
- Misses 62096 62178 +82 ☔ View full report in Codecov by Sentry. |
"RESET MASTER": {}, | ||
"SET GLOBAL gtid_purged": {}, |
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.
are these two commands removed?
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.
@harshit-gangal No, they are not, but they moved. It's how the fake tester works, it handles things in different ways for if they are called as single statements or with a list, which is annoying here but I didn't want to untangle that issue. We still run these commands.
You can see them being added here for example:
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
This deals with more deprecated SQL commands that now uses different terminology on newer MySQL versions.
Also refactors things to reduce some duplication and to simplify some logic. We now treat the latest syntax as default and keep older syntax for older versions as needed explicitly.
Related Issue(s)
Part of #9515
Checklist