135 lines
8.4 KiB
Plaintext
135 lines
8.4 KiB
Plaintext
#
|
|
# WL10778: Parser: output deprecation warnings on utf8 references, where
|
|
# utf8mb3 is an alias of utf8.
|
|
#
|
|
# Character set introducers.
|
|
SELECT _utf8'abc';
|
|
abc
|
|
abc
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
SELECT n'abc';
|
|
abc
|
|
abc
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
# convert().
|
|
SELECT CONVERT ( 'abc' USING utf8 );
|
|
CONVERT ( 'abc' USING utf8 )
|
|
abc
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
SELECT CAST( 'abc' AS NATIONAL CHAR );
|
|
CAST( 'abc' AS NATIONAL CHAR )
|
|
abc
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
SELECT CAST( 'abc' AS NCHAR );
|
|
CAST( 'abc' AS NCHAR )
|
|
abc
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
# cast().
|
|
SELECT CAST('test' AS CHAR CHARACTER SET utf8);
|
|
CAST('test' AS CHAR CHARACTER SET utf8)
|
|
test
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
# Column definitions.
|
|
CREATE TABLE t1 ( a CHAR(1) ) CHARACTER SET utf8;
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
CREATE TABLE t2 ( a CHAR(1) ) CHARACTER SET "utf8";
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
CREATE TABLE t3 ( a CHAR(1) ) CHARACTER SET 'utf8';
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
CREATE TABLE t4 ( a CHAR(1) ) CHARACTER SET `utf8`;
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
CREATE TABLE t5 ( a NATIONAL CHAR(1) );
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
CREATE TABLE t6 ( a NCHAR(1) );
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
CREATE TABLE t7 ( a NCHAR );
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
CREATE TABLE t8 ( a NVARCHAR(1) );
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
DROP TABLE t1, t2, t3, t4, t5, t6, t7, t8;
|
|
# Function definitions.
|
|
CREATE FUNCTION f1 ( a CHAR(1) CHARACTER SET utf8 ) RETURNS INT RETURN 1;
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
CREATE FUNCTION f2 ( a CHAR(1) CHARACTER SET "utf8" ) RETURNS INT RETURN 1;
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
CREATE FUNCTION f3 ( a CHAR(1) CHARACTER SET 'utf8' ) RETURNS INT RETURN 1;
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
CREATE FUNCTION f4 ( a CHAR(1) CHARACTER SET `utf8` ) RETURNS INT RETURN 1;
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
CREATE FUNCTION f5 ( a NATIONAL CHAR(1) ) RETURNS INT RETURN 1;
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
CREATE FUNCTION f6 ( a NCHAR(1) ) RETURNS INT RETURN 1;
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
CREATE FUNCTION f7 ( a NCHAR ) RETURNS INT RETURN 1;
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
CREATE FUNCTION f8 ( a NVARCHAR(1) ) RETURNS INT RETURN 1;
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
DROP FUNCTION f1;
|
|
DROP FUNCTION f2;
|
|
DROP FUNCTION f3;
|
|
DROP FUNCTION f4;
|
|
DROP FUNCTION f5;
|
|
DROP FUNCTION f6;
|
|
DROP FUNCTION f7;
|
|
DROP FUNCTION f8;
|
|
# Columns clause in JSON table functions.
|
|
SELECT * FROM json_table('[]', '$[*]'
|
|
COLUMNS (p CHAR(1) CHARACTER SET utf8 PATH '$.a')) AS t;
|
|
p
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
SELECT * FROM json_table('[]', '$[*]'
|
|
COLUMNS (p CHAR(1) CHARACTER SET "utf8" PATH '$.a')) AS t;
|
|
p
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
SELECT * FROM json_table('[]', '$[*]'
|
|
COLUMNS (p CHAR(1) CHARACTER SET 'utf8' PATH '$.a')) AS t;
|
|
p
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
SELECT * FROM json_table('[]', '$[*]'
|
|
COLUMNS (p CHAR(1) CHARACTER SET `utf8` PATH '$.a')) AS t;
|
|
p
|
|
Warnings:
|
|
Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
|
|
SELECT * FROM json_table('[]', '$[*]'
|
|
COLUMNS (p NATIONAL CHAR(1) PATH '$.a')) AS t;
|
|
p
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
SELECT * FROM json_table('[]', '$[*]' COLUMNS (p NCHAR(1) PATH '$.a')) AS t;
|
|
p
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
SELECT * FROM json_table('[]', '$[*]' COLUMNS (p NCHAR PATH '$.a')) AS t;
|
|
p
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|
|
SELECT * FROM json_table('[]', '$[*]' COLUMNS (p NVARCHAR(1) PATH '$.a')) AS t;
|
|
p
|
|
Warnings:
|
|
Warning 3720 NATIONAL/NCHAR/NVARCHAR implies the character set UTF8MB3, which will be replaced by UTF8MB4 in a future release. Please consider using CHAR(x) CHARACTER SET UTF8MB4 in order to be unambiguous.
|