ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (1) (#22670)#22930
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
/run-all-tests |
|
@AilinKid you're already a collaborator in bot's repo. |
ddl/util/util.go
Outdated
| nameList := "" | ||
| var buf strings.Builder | ||
| sqlexec.MustFormatSQL(&buf, loadGlobalVars) | ||
| for i, name := range varNames { |
There was a problem hiding this comment.
You can use %? to output 'xx','xx' for []string type.
There was a problem hiding this comment.
Then these two invocation of MustFormatSQL can be combined into one.
Signed-off-by: ailinkid <314806019@qq.com>
Signed-off-by: ailinkid <314806019@qq.com>
|
/lgtm |
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by writing |
|
/merge |
|
@AilinKid: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 10737b5 |
cherry-pick #22670 to release-3.0
You can switch your code base to this Pull Request by using git-extras:
# In tidb repo: git pr https://github.com/pingcap/tidb/pull/22930After apply modifications, you can push your change to this PR via:
Signed-off-by: AilinKid 314806019@qq.com
What problem does this PR solve?
Issue Number: part close #pingcap/tidb-test#1152
What is changed and how it works?
What's Changed:
Migrate part of code in ddl package from using Execute/ExecRestricted to safe API
Related changes
pingcap/docs/pingcap/docs-cn:Check List
Tests
Release note