-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
ddl: fix index length calculation #13727
Conversation
c3baceb
to
2b42f90
Compare
Codecov Report
@@ Coverage Diff @@
## master #13727 +/- ##
===========================================
Coverage 80.4209% 80.4209%
===========================================
Files 474 474
Lines 118269 118269
===========================================
Hits 95113 95113
Misses 15740 15740
Partials 7416 7416 |
2b42f90
to
36a6674
Compare
388ea3f
to
f4df915
Compare
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
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
f4df915
to
de26b1d
Compare
de26b1d
to
ed8e078
Compare
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-all-tests |
@tangenta merge failed. |
df7d3d9
to
4004194
Compare
/run-all-tests |
/run-common-test -tidb-test=pr/956 |
cherry pick to release-3.0 in PR #13779 |
cherry pick to release-2.1 failed |
It seems that, not for sure, we failed to cherry-pick this commit to release-2.1. Please comment '/run-cherry-picker' to try to trigger the cherry-picker if we did fail to cherry-pick this commit before. @tangenta PTAL. |
What problem does this PR solve?
In MySQL 8.0:
In TiDB master:
The default charset is
utf8mb4
with at most 4 bytes per character. However, TiDB assumes 1 byte per character by default, which is incorrect.What is changed and how it works?
getIndexColumnLength
, taking charsets into consideration.Check List
Tests
Code changes
N/A
Side effects
Related changes
Release note