-
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: update parser to make TiDB treat charset and collate case insensitive #8577
Conversation
@tiancaiamao PTAL |
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.
Release Version: v2.0.9-20-ged6e8ff
Git Commit Hash: ed6e8ff6b3df1eb64b1050e008d922b981a75329
tidb> create table test(id int) ENGINE=InnoDB DEFAULT CHARSET=UTF8 COLLATE=UTF8_BIN;
ERROR 1115 (42000): Unknown character set: 'UTF8'
tidb> create table test(id int) ENGINE=InnoDB DEFAULT CHARSET=UTF8 COLLATE=utf8_bin;
ERROR 1115 (42000): Unknown character set: 'UTF8'
Release Version: v2.1.0-2-gb2382fb
Git Commit Hash: b2382fbe6c34d2ce200018ff765b1acb05cc7f6b
tidb> create table test(id int) ENGINE=InnoDB DEFAULT CHARSET=UTF8 COLLATE=UTF8_BIN;
ERROR 1115 (42000): Unknown character set: 'UTF8'
tidb> create table test(id int) ENGINE=InnoDB DEFAULT CHARSET=UTF8 COLLATE=utf8_bin;
Query OK, 0 rows affected (0.11 sec)
It seems can't pass these tests in v2.0 and v2.1. We need to fix these.
@zimulala release-2.1 is not using master branch parser |
/run-all-tests |
@zimulala The changes in parser need to cherry-pick to 2.1 branches later. Never mind. |
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
LGTM |
/run-all-tests |
What problem does this PR solve?
Fix #8304
What is changed and how it works?
Actually, pingcap/parser#66 fix this problem, we just add some test cases and update the go.mod to the corresponding parser will work.
Check List
Tests
Related changes
This change is