Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.5, 10.6, 11.4, 11.7
-
None
Description
In CREATE TABLE JSON fields default to utf8mb4, even if not specified, resulting in its overriding the charset of the table. However, the overriding does not happen in ALTER TABLE when the table charset is changed, resulting in the inconsistency shown below:
CREATE TABLE t ( cj JSON ) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci;
|
select character_set_name from information_schema.columns where table_name = 't' and column_name='cj';
|
character_set_name
|
utf8mb4
|
alter table t CONVERT TO CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci;
|
select character_set_name from information_schema.columns where table_name = 't' and column_name='cj';
|
character_set_name
|
utf8mb3
|
Attachments
Issue Links
- blocks
-
MDEV-34716 Allow arbitrary options in CREATE SERVER
- Closed