Skip to content
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

Support utf8mb4_0900_ai_ci when new collation is enabled #37566

Closed
GMHDBJD opened this issue Sep 2, 2022 · 1 comment · Fixed by #45650
Closed

Support utf8mb4_0900_ai_ci when new collation is enabled #37566

GMHDBJD opened this issue Sep 2, 2022 · 1 comment · Fixed by #45650
Assignees
Labels
compatibility-mysql80 This is a compatibility issue with MySQL 8.0(but NOT 5.7) help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/compatibility type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@GMHDBJD
Copy link
Contributor

GMHDBJD commented Sep 2, 2022

Feature Request

Is your feature request related to a problem? Please describe:

create database and show create database in mysql 8.0.23

mysql> create database db;
Query OK, 1 row affected (0.02 sec)

mysql> show create database db;
+----------+------------------------------------------------------------------------------------------------------------------------------+
| Database | Create Database                                                                                                              |
+----------+------------------------------------------------------------------------------------------------------------------------------+
| db       | CREATE DATABASE `db` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */ |
+----------+------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

then create database in tidb v6.x

mysql> CREATE DATABASE `db` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
ERROR 1273 (HY000): Unsupported collation when new collation is enabled: 'utf8mb4_0900_ai_ci'

Describe the feature you'd like:

support utf9mb4_0900_ai_ci

Describe alternatives you've considered:

align utf8mb4_0900_ai_ci as utf8mb4_general_ci

Teachability, Documentation, Adoption, Migration Strategy:

@GMHDBJD GMHDBJD added the type/feature-request Categorizes issue or PR as related to a new feature. label Sep 2, 2022
@xiongjiwei xiongjiwei added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Sep 2, 2022
@mikechengwei
Copy link

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility-mysql80 This is a compatibility issue with MySQL 8.0(but NOT 5.7) help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/compatibility type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants