-
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, types: don't let SPM be affected by charset #23161
Conversation
/run-check_dev_2 parser=pr/1184 |
/rebuild parser=pr/1184 |
/sig planner |
/cc @qw4990 |
/cc @eurekaka |
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.
Please add test for this PR.
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.
We need an upgrade function as well.
Merge canceled because a new commit is pushed. |
/run-all-tests |
/run-all-tests |
1 similar comment
/run-all-tests |
/run-all-tests |
session/bootstrap_test.go
Outdated
@@ -545,9 +553,10 @@ func (s *testBootstrapSuite) TestUpdateBindInfo(c *C) { | |||
bindCase.bindText, | |||
bindCase.db, | |||
) | |||
fmt.Println("[sql]", sql) |
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.
useless ?
session/bootstrap.go
Outdated
@@ -543,12 +544,13 @@ var ( | |||
// We will redo upgradeToVer58 in upgradeToVer64, it is skipped here. | |||
upgradeToVer59, | |||
upgradeToVer60, | |||
upgradeToVer61, | |||
// We will redo upgradeToVer61 in upgradeToVer6, it is skipped here. |
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.
upgradeToVer6 ?
/run-all-tests |
/lgtm |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #23295 |
What problem does this PR solve?
Issue Number: close #xxx
Different default charsets in different drivers(or versions) make SQL bind cannot work.
So we don't let SPM be affected by charset.
We add a flag
RestoreStringWithoutCharset
to control this.Need to merge parser pr first
Related changes
Check List
Tests
Side effects
Release note