-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
util: fix issue #9532, quote database name before running SQL with it #9547
Conversation
/run-all-tests |
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.
LGTM
(The test failure in https://internal.pingcap.net/idc-jenkins/blue/organizations/jenkins/tidb_ghpr_unit_test/detail/tidb_ghpr_unit_test/1764/pipeline/
do not seem to be relevant.) |
/run-integration-common-test |
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.
LGTM
/run-unit-test |
Codecov Report
@@ Coverage Diff @@
## master #9547 +/- ##
==========================================
+ Coverage 67.37% 67.38% +0.01%
==========================================
Files 375 375
Lines 78778 78779 +1
==========================================
+ Hits 53076 53088 +12
+ Misses 20931 20923 -8
+ Partials 4771 4768 -3
Continue to review full report at Codecov.
|
What problem does this PR solve?
Fixed #9532.
What is changed and how it works?
Add quotation marks around the database name, to ensure it is already interpreted as an identifier even if it contains exotic characters or keywords.
Check List
Tests
Code changes
Side effects
Related changes