mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-19123 Change default charset from latin1 to utf8mb4
Changing the default server character set from latin1 to utf8mb4.
This commit is contained in:
@ -18,7 +18,7 @@ Table Create Table
|
||||
no_index_tab CREATE TABLE `no_index_tab` (
|
||||
`a` varchar(255) NOT NULL,
|
||||
`b` int(11) NOT NULL
|
||||
) ENGINE=CSV DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=CSV DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
insert into marker set a = 1;
|
||||
insert into test.no_index_tab set a = 'foo', b = 1;
|
||||
insert into marker set a = 1;
|
||||
|
@ -18,14 +18,14 @@ Table Create Table
|
||||
no_index_tab CREATE TABLE `no_index_tab` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` char(30) DEFAULT 'Default'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
show create table test.index_tab;
|
||||
Table Create Table
|
||||
index_tab CREATE TABLE `index_tab` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` char(30) DEFAULT 'Default',
|
||||
UNIQUE KEY `uidx` (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
# Printing of 100 inserts per table is suppressed
|
||||
|
@ -18,7 +18,7 @@ Table Create Table
|
||||
no_index_tab CREATE TABLE `no_index_tab` (
|
||||
`a` varchar(255) NOT NULL,
|
||||
`b` int(11) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
insert into marker set a = 1;
|
||||
insert into test.no_index_tab set a = 'foo', b = 1;
|
||||
insert into marker set a = 1;
|
||||
|
@ -18,7 +18,7 @@ Table Create Table
|
||||
no_index_tab CREATE TABLE `no_index_tab` (
|
||||
`a` varchar(255) NOT NULL,
|
||||
`b` int(11) NOT NULL
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
insert into marker set a = 1;
|
||||
insert into test.no_index_tab set a = 'foo', b = 1;
|
||||
insert into marker set a = 1;
|
||||
|
@ -26,21 +26,21 @@ Table Create Table
|
||||
no_index_tab_1 CREATE TABLE `no_index_tab_1` (
|
||||
`a` varchar(255) NOT NULL,
|
||||
`b` int(11) NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
insert into marker set a = 1;
|
||||
show create table test.no_index_tab_2;
|
||||
Table Create Table
|
||||
no_index_tab_2 CREATE TABLE `no_index_tab_2` (
|
||||
`a` varchar(255) NOT NULL,
|
||||
`b` int(11) NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
insert into marker set a = 1;
|
||||
show create table test.no_index_tab;
|
||||
Table Create Table
|
||||
no_index_tab CREATE TABLE `no_index_tab` (
|
||||
`a` varchar(255) NOT NULL,
|
||||
`b` int(11) NOT NULL
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci INSERT_METHOD=FIRST UNION=(`no_index_tab_1`,`no_index_tab_2`)
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci INSERT_METHOD=FIRST UNION=(`no_index_tab_1`,`no_index_tab_2`)
|
||||
insert into marker set a = 1;
|
||||
insert into test.no_index_tab set a = 'foo', b = 1;
|
||||
insert into marker set a = 1;
|
||||
|
@ -9,13 +9,13 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`col1` bigint(20) DEFAULT NULL,
|
||||
`col2` varchar(30) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
show create table test1.t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`col1` bigint(20) DEFAULT NULL,
|
||||
`col2` varchar(30) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
drop table if exists test.marker;
|
||||
create table test.marker(a int);
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
|
@ -18,7 +18,7 @@ Table Create Table
|
||||
no_index_tab CREATE TABLE `no_index_tab` (
|
||||
`a` varchar(255) NOT NULL,
|
||||
`b` int(11) NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
insert into marker set a = 1;
|
||||
insert into test.no_index_tab set a = 'foo', b = 1;
|
||||
insert into marker set a = 1;
|
||||
|
@ -19,7 +19,7 @@ Table Create Table
|
||||
no_index_tab CREATE TABLE `no_index_tab` (
|
||||
`a` varchar(255) NOT NULL,
|
||||
`b` int(11) NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
PARTITION BY KEY (`b`)
|
||||
PARTITIONS 2
|
||||
insert into marker set a = 1;
|
||||
|
@ -5,7 +5,7 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`col1` bigint(20) DEFAULT NULL,
|
||||
`col2` varchar(30) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
insert into test.t1 values(1,'One');
|
||||
set default_storage_engine=InnoDB;
|
||||
drop table if exists test.marker;
|
||||
|
@ -9,7 +9,7 @@ Variable_name Value
|
||||
sql_mode REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
|
||||
select @@character_set_server;
|
||||
@@character_set_server
|
||||
utf8mb3
|
||||
utf8mb4
|
||||
show global variables like 'character_set_system';
|
||||
Variable_name Value
|
||||
character_set_system utf8mb3
|
||||
|
@ -18,7 +18,7 @@ Table Create Table
|
||||
no_index_tab CREATE TEMPORARY TABLE `no_index_tab` (
|
||||
`a` varchar(255) NOT NULL,
|
||||
`b` int(11) NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
insert into marker set a = 1;
|
||||
insert into test.no_index_tab set a = 'foo', b = 1;
|
||||
insert into marker set a = 1;
|
||||
|
@ -19,7 +19,7 @@ Table Create Table
|
||||
no_index_tab CREATE TABLE `no_index_tab` (
|
||||
`a` varchar(255) NOT NULL,
|
||||
`b` int(11) NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
insert into marker set a = 1;
|
||||
create view test.v1 as select * from test.no_index_tab;
|
||||
insert into marker set a = 1;
|
||||
|
@ -1 +1 @@
|
||||
-a -Cutf8 -W1
|
||||
-a -Cutf8mb4 -W1
|
||||
|
Reference in New Issue
Block a user