mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-8334: Rename utf8 to utf8mb3
This patch changes the main name of 3 byte character set from utf8 to utf8mb3. New old_mode UTF8_IS_UTF8MB3 is added and set TRUE by default, so that utf8 would mean utf8mb3. If not set, utf8 would mean utf8mb4.
This commit is contained in:
committed by
Oleksandr Byelkin
parent
c366845a0b
commit
2fdb556e04
@ -31,17 +31,17 @@ latin2 NULL
|
||||
SET sql_mode=@mode;
|
||||
SELECT N'',CHARSET(N''), N'x', CHARSET(N'x');
|
||||
NULL CHARSET(N'') x CHARSET(N'x')
|
||||
NULL utf8 x utf8
|
||||
NULL utf8mb3 x utf8mb3
|
||||
SELECT CHARSET(NULLIF(N'',N'')),NULLIF(N'',N'');
|
||||
CHARSET(NULLIF(N'',N'')) NULLIF(N'',N'')
|
||||
utf8 NULL
|
||||
utf8mb3 NULL
|
||||
SET sql_mode=default;
|
||||
SELECT N'',CHARSET(N''), N'x', CHARSET(N'x');
|
||||
CHARSET(N'') x CHARSET(N'x')
|
||||
utf8 x utf8
|
||||
utf8mb3 x utf8mb3
|
||||
SELECT CHARSET(NULLIF(N'',N'')),NULLIF(N'',N'');
|
||||
CHARSET(NULLIF(N'',N'')) NULLIF(N'',N'')
|
||||
utf8 NULL
|
||||
utf8mb3 NULL
|
||||
#
|
||||
# Test CHARSET prefix litteral
|
||||
#
|
||||
@ -98,7 +98,7 @@ NULL CHARSET(_latin1'' '' '')
|
||||
NULL latin1
|
||||
SELECT N'' '' '',CHARSET(N'' '' '');
|
||||
NULL CHARSET(N'' '' '')
|
||||
NULL utf8
|
||||
NULL utf8mb3
|
||||
#
|
||||
# UNION - implicit group by
|
||||
#
|
||||
|
Reference in New Issue
Block a user