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

conversion from enum to JSON is not compatible with MySQL #25329

Closed
Tracked by #36993
tangenta opened this issue Jun 10, 2021 · 2 comments · Fixed by #37402
Closed
Tracked by #36993

conversion from enum to JSON is not compatible with MySQL #25329

tangenta opened this issue Jun 10, 2021 · 2 comments · Fixed by #37402
Assignees
Labels
component/json severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@tangenta
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

drop table if exists tbl_5;
create table tbl_5 (col_83 enum('Alice','Bob','Charlie','David'));
insert into tbl_5 values ('David'); 
alter table tbl_5 modify column col_83 json ;

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

MySQL:

mysql> alter table tbl_5 modify column col_83 json ;
ERROR 3140 (22032): Invalid JSON text: "Invalid value." at position 0 in value for column '#sql-1_9b.col_83'.

3. What did you see instead (Required)

TiDB:

mysql> alter table tbl_5 modify column col_83 json ;
Query OK, 0 rows affected (0.52 sec)

4. What is your TiDB version? (Required)

master

commit 6d69d13d10138b8f1eab1e36a669a43c390c714e (HEAD, upstream/master)
Author: disksing <[email protected]>
Date:   Wed Jun 9 14:02:28 2021 +0800

    store/tikv: cleanup dependency (#25283)
@tangenta tangenta added the type/bug The issue is confirmed as a bug. label Jun 10, 2021
@jingshanglu jingshanglu added the sig/sql-infra SIG: SQL Infra label Jun 10, 2021
@ymkzpx
Copy link
Contributor

ymkzpx commented Aug 15, 2022

/assign

@xiongjiwei
Copy link
Contributor

maybe similar to #9999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/json severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants