mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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:
@ -120,7 +120,7 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`uuid()` uuid NOT NULL,
|
||||
`length(uuid())` int(10) NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
select length(`uuid()`) from t1;
|
||||
length(`uuid()`)
|
||||
36
|
||||
@ -130,7 +130,7 @@ show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` bigint(21) unsigned DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
drop table t1;
|
||||
drop table if exists table_26093;
|
||||
drop function if exists func_26093_a;
|
||||
@ -1541,7 +1541,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a1` varchar(30) DEFAULT inet_ntoa(`b`),
|
||||
`c` int(11) DEFAULT is_ipv4(`a`),
|
||||
`d` int(11) DEFAULT is_ipv6(`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
INSERT INTO t1 (a) VALUES ('192.168.001.001'),('::1'),('xxx');
|
||||
SELECT * FROM t1;
|
||||
a b a1 c d
|
||||
@ -1564,7 +1564,7 @@ t1 CREATE TABLE `t1` (
|
||||
`str1` varchar(128) DEFAULT inet6_ntoa(`addr`),
|
||||
`b` int(11) DEFAULT is_ipv4_compat(`addr`),
|
||||
`c` int(11) DEFAULT is_ipv4_mapped(`addr`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
INSERT INTO t1 (str) VALUES ('::FFFF:192.168.0.1'),('::10.0.5.9');
|
||||
SELECT str, str1, b,c FROM t1;
|
||||
str str1 b c
|
||||
@ -1624,7 +1624,7 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`c1` bigint(20) unsigned NOT NULL,
|
||||
`c2` bigint(20) unsigned DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
SELECT * FROM t1;
|
||||
c1 c2
|
||||
18446744073709551615 18446744073709551615
|
||||
|
Reference in New Issue
Block a user