-
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
table, infoschema, executor: fix Charset/Collation shown in column desc #10007
Conversation
b9ce58a
to
de338af
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.
- TODO && FIXME, I think use one of them is enough.
- Maybe we should delete or change the mysql-test.
/run-all-tests |
de338af
to
425490b
Compare
/run-all-tests tidb-test=pr/777 |
Codecov Report
@@ Coverage Diff @@
## master #10007 +/- ##
===============================================
- Coverage 78.033% 77.9657% -0.0674%
===============================================
Files 404 404
Lines 81996 81995 -1
===============================================
- Hits 63984 63928 -56
- Misses 13316 13354 +38
- Partials 4696 4713 +17 |
/run-all-tests tidb-test=pr/777 |
fbbcecd
to
0b966f1
Compare
/run-all-tests tidb-test=pr/777 |
/run-all-tests tidb-test=pr/777 |
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
ba884b4
to
0a19d05
Compare
Addressed, thanks @zimulala |
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 tidb-test=pr/777 |
need a cherry pick to 2.1 branch |
What problem does this PR solve?
With the help of a parser PR(pingcap/parser#270), this request aims to fix:
Collate
descriptions displayed inSHOW FULL COLUMNS
statement. It will: close compatibility: “show full columns” prints wrong Collation for date, datatime, timestamp columns #9807, close Need to check and fix more types inshow (full) columns
#9837.Some corner cases in
information_schema.COLUMNS
table, take the following statements as instance:In MySQL 5.7:
In TiDB master before this PR:
What is changed and how it works?
It used a HasCharset() function ported from MySQL source and use it to determine if given column's Charset/Collation should be displayed, following the way MySQL does:
sql_show.cc::store_column_type()
Check List
Tests
Code changes
Side effects
Related changes