mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -581,7 +581,7 @@ show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`ST_GeomFromWKB(POINT(1,3))` geometry DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
|
||||
drop table t1;
|
||||
SET sql_mode = 'NO_ENGINE_SUBSTITUTION';
|
||||
CREATE TABLE `t1` (`object_id` bigint(20) unsigned NOT NULL default '0', `geo`
|
||||
@@ -786,7 +786,7 @@ show create function fn3;
|
||||
Function sql_mode Create Function character_set_client collation_connection Database Collation
|
||||
fn3 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `fn3`() RETURNS point
|
||||
DETERMINISTIC
|
||||
return ST_GeomFromText("point(1 1)") latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
return ST_GeomFromText("point(1 1)") latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
|
||||
select ST_astext(fn3());
|
||||
ST_astext(fn3())
|
||||
POINT(1 1)
|
||||
|
Reference in New Issue
Block a user