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:
@ -530,7 +530,7 @@ drop table t1, t2;
|
||||
# Bug #20732: Partial index and long sjis search with '>' fails sometimes
|
||||
#
|
||||
|
||||
create table t1(a char(2), key(a(1)));
|
||||
create table t1(a char(2), key(a(1))) charset=latin1;
|
||||
insert into t1 values ('x'), ('xx');
|
||||
explain select a from t1 where a > 'x';
|
||||
select a from t1 where a > 'x';
|
||||
@ -746,7 +746,7 @@ CREATE TABLE t1 (
|
||||
status varchar(20),
|
||||
PRIMARY KEY (id),
|
||||
KEY (status)
|
||||
);
|
||||
) CHARSET=latin1;
|
||||
|
||||
INSERT INTO t1 VALUES
|
||||
(1,'B'), (2,'B'), (3,'B'), (4,'B'), (5,'B'), (6,'B'),
|
||||
@ -857,7 +857,7 @@ insert into t1 values ('a ', '');
|
||||
insert into t1 select concat('a', 1000 + A.a + 10 * (B.a + 10 * C.a)), ''
|
||||
from t3 A, t3 B, t3 C;
|
||||
|
||||
create table t2 (a varchar(10), filler char(200), key(a));
|
||||
create table t2 (a varchar(10), filler char(200), key(a)) charset=latin1;
|
||||
insert into t2 select * from t1;
|
||||
|
||||
--replace_column 9 #
|
||||
@ -915,7 +915,7 @@ CREATE TABLE t1 (
|
||||
started datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
price decimal(16,3) NOT NULL default '0.000',
|
||||
PRIMARY KEY (item,started)
|
||||
) ENGINE=MyISAM;
|
||||
) ENGINE=MyISAM CHARSET=latin1;
|
||||
|
||||
INSERT INTO t1 VALUES
|
||||
('A1','2005-11-01 08:00:00',1000),
|
||||
@ -1767,7 +1767,7 @@ CREATE TABLE t1 (a DATETIME);
|
||||
INSERT INTO t1 VALUES ('2001-01-01 00:00:00');
|
||||
INSERT INTO t1 VALUES ('2001-01-01 11:22:33');
|
||||
|
||||
CREATE TABLE t2 (b VARCHAR(64), KEY (b));
|
||||
CREATE TABLE t2 (b VARCHAR(64), KEY (b)) CHARSET=latin1;
|
||||
INSERT INTO t2 VALUES ('2001-01-01');
|
||||
INSERT INTO t2 VALUES ('2001.01.01');
|
||||
INSERT INTO t2 VALUES ('2001#01#01');
|
||||
@ -1894,7 +1894,7 @@ DROP TABLE t1;
|
||||
--echo # from <row> IN (<row value list>)
|
||||
--echo #
|
||||
|
||||
create table t1(a int, b int, c varchar(16), key idx(a,b)) engine=myisam;
|
||||
create table t1(a int, b int, c varchar(16), key idx(a,b)) engine=myisam charset=latin1;
|
||||
|
||||
insert into t1 values
|
||||
(1,1,'xx'), (2,2,'yyy'), (3,3,'zzzz'), (1,2,'zz'), (1,3,'x'),
|
||||
@ -1947,7 +1947,7 @@ set optimizer_switch='index_merge=off';
|
||||
|
||||
create table t2(
|
||||
d int, e int, key idx1(d), key idx2(e), f varchar(32)
|
||||
) engine=myisam;
|
||||
) engine=myisam charset=latin1;
|
||||
|
||||
insert into t2 values
|
||||
(9,5,'a'), (9,8,'b'), (9,3,'c'), (9,2,'d'), (9,1,'e'),
|
||||
|
Reference in New Issue
Block a user