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

Unsupported modify charset from latin1 to utf8mb4 #34008

Open
3 of 5 tasks
bestwoody opened this issue Apr 15, 2022 · 3 comments
Open
3 of 5 tasks

Unsupported modify charset from latin1 to utf8mb4 #34008

bestwoody opened this issue Apr 15, 2022 · 3 comments
Assignees
Labels
component/charset feature/accepted This feature request is accepted by product managers sig/sql-infra SIG: SQL Infra type/enhancement

Comments

@bestwoody
Copy link
Contributor

bestwoody commented Apr 15, 2022

Working Progress

Implementation

Bugs

Docs

Bug Report

Unsupported modify charset from latin1 to utf8mb4

1. Minimal reproduce step (Required)

MySQL [test]> create table t2(a varchar(20) )CHARSET=latin1;
MySQL [test]> insert into t2 values('😊');
MySQL [test]> alter table t2 DEFAULT CHARACTER SET utf8mb4;

2. What did you expect to see? (Required)

Query OK

3. What did you see instead (Required)

ERROR 8200 (HY000): Unsupported modify charset from latin1 to utf8mb4

4. What is your TiDB version? (Required)

v5.2.2

@bestwoody bestwoody added the type/bug This issue is a bug. label Apr 15, 2022
@wjhuang2016
Copy link
Member

We don't have a plan to support it in a short time.

@bestwoody
Copy link
Contributor Author

We don't have a plan to support it in a short time.

this affects POC user.

@xiongjiwei
Copy link
Contributor

MySQL [test]> create table t3 (a varchar(20)) charset=utf8mb4;
MySQL [test]> insert into t3 select * from t2;

this shall work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/charset feature/accepted This feature request is accepted by product managers sig/sql-infra SIG: SQL Infra type/enhancement
Projects
None yet
Development

No branches or pull requests

6 participants