mariadb/mysql-test/suite/sys_vars/r/collation_database_basic.result
Rucha Deodhar 2fdb556e04 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.
2021-05-19 06:48:36 +02:00

1229 lines
40 KiB
Text

SET @global_start_value = @@global.collation_database;
SET @@global.collation_database=@@collation_server;
SELECT @@global.collation_database;
@@global.collation_database
latin1_swedish_ci
SET @session_start_value = @@collation_database;
SELECT @session_start_value;
@session_start_value
latin1_swedish_ci
SET @session_start_value = @@local.collation_database;
SELECT @session_start_value;
@session_start_value
latin1_swedish_ci
SET @session_start_value = @@session.collation_database;
SELECT @session_start_value;
@session_start_value
latin1_swedish_ci
'#--------------------FN_DYNVARS_016_01------------------#'
SELECT collation_database;
ERROR 42S22: Unknown column 'collation_database' in 'field list'
SET collation_database=utf8_unicode_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_unicode_ci
SET session collation_database=utf8_unicode_ci;
SELECT session collation_database;
ERROR 42S22: Unknown column 'session' in 'field list'
SET global collation_database=utf8_unicode_ci;
set global collation_database=@@collation_server;
SELECT global collation_database;
ERROR 42S22: Unknown column 'global' in 'field list'
'#--------------------FN_DYNVARS_016_02-------------------------#'
SET @@collation_database = latin1_bin;
SET @@collation_database = DEFAULT;
SELECT DEFAULT_COLLATION_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME=DATABASE();
DEFAULT_COLLATION_NAME
latin1_swedish_ci
SELECT @@collation_database = @@global.collation_database;
@@collation_database = @@global.collation_database
1
SET @@global.collation_database = latin1_bin;
SET @@global.collation_database = DEFAULT;
SELECT length(@@global.collation_database) > 0;
length(@@global.collation_database) > 0
1
'#--------------------FN_DYNVARS_016_03-------------------------#'
SET @@session.collation_database = utf8_polish_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_polish_ci
SET @@global.collation_database = latin7_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin7_general_ci
SELECT @@session.collation_database AS res_is_utf8_polish_ci;
res_is_utf8_polish_ci
utf8mb3_polish_ci
SET @@session.collation_database = latin7_bin;
SELECT @@session.collation_database;
@@session.collation_database
latin7_bin
SELECT @@global.collation_database AS res_is_latin7_general_ci;
res_is_latin7_general_ci
latin7_general_ci
SELECT @@global.collation_database=@@session.collation_database AS res_is_false;
res_is_false
0
'#--------------------FN_DYNVARS_016_04-------------------------#'
SELECT @@collation_database = @@session.collation_database AS res;
res
1
SELECT @@collation_database = @@local.collation_database AS res;
res
1
'#--------------------FN_DYNVARS_016_05-------------------------#'
SET @@collation_database = latin7_general_ci + latin7_general_cs;
ERROR 42S22: Unknown column 'latin7_general_ci' in 'field list'
'#--------------------FN_DYNVARS_016_06-------------------------#'
SET @@session.collation_database = big5_chinese_ci;
SELECT @@session.collation_database;
@@session.collation_database
big5_chinese_ci
SET @@session.collation_database = big5_bin;
SELECT @@session.collation_database;
@@session.collation_database
big5_bin
SET @@session.collation_database = dec8_swedish_ci;
SELECT @@session.collation_database;
@@session.collation_database
dec8_swedish_ci
SET @@session.collation_database = dec8_bin;
SELECT @@session.collation_database;
@@session.collation_database
dec8_bin
SET @@session.collation_database = cp850_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp850_general_ci
SET @@session.collation_database = cp850_bin;
SELECT @@session.collation_database;
@@session.collation_database
cp850_bin
SET @@session.collation_database = hp8_english_ci;
SELECT @@session.collation_database;
@@session.collation_database
hp8_english_ci
SET @@session.collation_database = hp8_bin;
SELECT @@session.collation_database;
@@session.collation_database
hp8_bin
SET @@session.collation_database = koi8r_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
koi8r_general_ci
SET @@session.collation_database = koi8r_bin;
SELECT @@session.collation_database;
@@session.collation_database
koi8r_bin
SET @@session.collation_database = latin1_german1_ci;
SELECT @@session.collation_database;
@@session.collation_database
latin1_german1_ci
SET @@session.collation_database = latin1_swedish_ci;
SELECT @@session.collation_database;
@@session.collation_database
latin1_swedish_ci
SET @@session.collation_database = latin1_danish_ci;
SELECT @@session.collation_database;
@@session.collation_database
latin1_danish_ci
SET @@session.collation_database = latin1_german2_ci;
SELECT @@session.collation_database;
@@session.collation_database
latin1_german2_ci
SET @@session.collation_database = latin1_bin;
SELECT @@session.collation_database;
@@session.collation_database
latin1_bin
SET @@session.collation_database = latin1_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
latin1_general_ci
SET @@session.collation_database = latin1_general_cs;
SELECT @@session.collation_database;
@@session.collation_database
latin1_general_cs
SET @@session.collation_database = latin1_spanish_ci;
SELECT @@session.collation_database;
@@session.collation_database
latin1_spanish_ci
SET @@session.collation_database = latin2_czech_cs;
SELECT @@session.collation_database;
@@session.collation_database
latin2_czech_cs
SET @@session.collation_database = latin2_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
latin2_general_ci
SET @@session.collation_database = latin2_hungarian_ci;
SELECT @@session.collation_database;
@@session.collation_database
latin2_hungarian_ci
SET @@session.collation_database = latin2_croatian_ci;
SELECT @@session.collation_database;
@@session.collation_database
latin2_croatian_ci
SET @@session.collation_database = latin2_bin;
SELECT @@session.collation_database;
@@session.collation_database
latin2_bin
SET @@session.collation_database = swe7_swedish_ci;
SELECT @@session.collation_database;
@@session.collation_database
swe7_swedish_ci
SET @@session.collation_database = swe7_bin;
SELECT @@session.collation_database;
@@session.collation_database
swe7_bin
SET @@session.collation_database = ascii_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
ascii_general_ci
SET @@session.collation_database = ascii_bin;
SELECT @@session.collation_database;
@@session.collation_database
ascii_bin
SET @@session.collation_database = ujis_japanese_ci;
SELECT @@session.collation_database;
@@session.collation_database
ujis_japanese_ci
SET @@session.collation_database = ujis_bin;
SELECT @@session.collation_database;
@@session.collation_database
ujis_bin
SET @@session.collation_database = sjis_japanese_ci;
SELECT @@session.collation_database;
@@session.collation_database
sjis_japanese_ci
SET @@session.collation_database = sjis_bin;
SELECT @@session.collation_database;
@@session.collation_database
sjis_bin
SET @@session.collation_database = hebrew_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
hebrew_general_ci
SET @@session.collation_database = hebrew_bin;
SELECT @@session.collation_database;
@@session.collation_database
hebrew_bin
SET @@session.collation_database = tis620_thai_ci;
SELECT @@session.collation_database;
@@session.collation_database
tis620_thai_ci
SET @@session.collation_database = tis620_bin;
SELECT @@session.collation_database;
@@session.collation_database
tis620_bin
SET @@session.collation_database = euckr_korean_ci;
SELECT @@session.collation_database;
@@session.collation_database
euckr_korean_ci
SET @@session.collation_database = euckr_bin;
SELECT @@session.collation_database;
@@session.collation_database
euckr_bin
SET @@session.collation_database = koi8u_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
koi8u_general_ci
SET @@session.collation_database = koi8u_bin;
SELECT @@session.collation_database;
@@session.collation_database
koi8u_bin
SET @@session.collation_database = gb2312_chinese_ci;
SELECT @@session.collation_database;
@@session.collation_database
gb2312_chinese_ci
SET @@session.collation_database = gb2312_bin;
SELECT @@session.collation_database;
@@session.collation_database
gb2312_bin
SET @@session.collation_database = greek_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
greek_general_ci
SET @@session.collation_database = greek_bin;
SELECT @@session.collation_database;
@@session.collation_database
greek_bin
SET @@session.collation_database = cp1250_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp1250_general_ci
SET @@session.collation_database = cp1250_czech_cs;
SELECT @@session.collation_database;
@@session.collation_database
cp1250_czech_cs
SET @@session.collation_database = cp1250_croatian_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp1250_croatian_ci
SET @@session.collation_database = cp1250_bin;
SELECT @@session.collation_database;
@@session.collation_database
cp1250_bin
SET @@session.collation_database = cp1250_polish_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp1250_polish_ci
SET @@session.collation_database = gbk_chinese_ci;
SELECT @@session.collation_database;
@@session.collation_database
gbk_chinese_ci
SET @@session.collation_database = gbk_bin;
SELECT @@session.collation_database;
@@session.collation_database
gbk_bin
SET @@session.collation_database = latin5_turkish_ci;
SELECT @@session.collation_database;
@@session.collation_database
latin5_turkish_ci
SET @@session.collation_database = latin5_bin;
SELECT @@session.collation_database;
@@session.collation_database
latin5_bin
SET @@session.collation_database = armscii8_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
armscii8_general_ci
SET @@session.collation_database = armscii8_bin;
SELECT @@session.collation_database;
@@session.collation_database
armscii8_bin
SET @@session.collation_database = utf8_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_general_ci
SET @@session.collation_database = utf8_bin;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_bin
SET @@session.collation_database = utf8_unicode_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_unicode_ci
SET @@session.collation_database = utf8_icelandic_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_icelandic_ci
SET @@session.collation_database = utf8_latvian_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_latvian_ci
SET @@session.collation_database = utf8_romanian_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_romanian_ci
SET @@session.collation_database = utf8_slovenian_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_slovenian_ci
SET @@session.collation_database = utf8_polish_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_polish_ci
SET @@session.collation_database = utf8_estonian_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_estonian_ci
SET @@session.collation_database = utf8_spanish_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_spanish_ci
SET @@session.collation_database = utf8_swedish_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_swedish_ci
SET @@session.collation_database = utf8_turkish_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_turkish_ci
SET @@session.collation_database = utf8_czech_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_czech_ci
SET @@session.collation_database = utf8_danish_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_danish_ci
SET @@session.collation_database = utf8_lithuanian_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_lithuanian_ci
SET @@session.collation_database = utf8_slovak_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_slovak_ci
SET @@session.collation_database = utf8_spanish2_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_spanish2_ci
SET @@session.collation_database = utf8_roman_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_roman_ci
SET @@session.collation_database = utf8_persian_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_persian_ci
SET @@session.collation_database = utf8_esperanto_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_esperanto_ci
SET @@session.collation_database = utf8_hungarian_ci;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_hungarian_ci
SET @@session.collation_database = utf8_thai_520_w2;
SELECT @@session.collation_database;
@@session.collation_database
utf8mb3_thai_520_w2
SET @@session.collation_database = ucs2_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_general_ci
SET @@session.collation_database = ucs2_bin;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_bin
SET @@session.collation_database = ucs2_unicode_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_unicode_ci
SET @@session.collation_database = ucs2_icelandic_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_icelandic_ci
SET @@session.collation_database = ucs2_latvian_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_latvian_ci
SET @@session.collation_database = ucs2_romanian_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_romanian_ci
SET @@session.collation_database = ucs2_slovenian_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_slovenian_ci
SET @@session.collation_database = ucs2_polish_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_polish_ci
SET @@session.collation_database = ucs2_estonian_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_estonian_ci
SET @@session.collation_database = ucs2_spanish_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_spanish_ci
SET @@session.collation_database = ucs2_swedish_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_swedish_ci
SET @@session.collation_database = ucs2_turkish_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_turkish_ci
SET @@session.collation_database = ucs2_czech_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_czech_ci
SET @@session.collation_database = ucs2_danish_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_danish_ci
SET @@session.collation_database = ucs2_lithuanian_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_lithuanian_ci
SET @@session.collation_database = ucs2_slovak_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_slovak_ci
SET @@session.collation_database = ucs2_spanish2_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_spanish2_ci
SET @@session.collation_database = ucs2_roman_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_roman_ci
SET @@session.collation_database = ucs2_persian_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_persian_ci
SET @@session.collation_database = ucs2_esperanto_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_esperanto_ci
SET @@session.collation_database = ucs2_hungarian_ci;
SELECT @@session.collation_database;
@@session.collation_database
ucs2_hungarian_ci
SET @@session.collation_database = cp866_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp866_general_ci
SET @@session.collation_database = cp866_bin;
SELECT @@session.collation_database;
@@session.collation_database
cp866_bin
SET @@session.collation_database = keybcs2_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
keybcs2_general_ci
SET @@session.collation_database = keybcs2_bin;
SELECT @@session.collation_database;
@@session.collation_database
keybcs2_bin
SET @@session.collation_database = macce_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
macce_general_ci
SET @@session.collation_database = macce_bin;
SELECT @@session.collation_database;
@@session.collation_database
macce_bin
SET @@session.collation_database = macroman_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
macroman_general_ci
SET @@session.collation_database = macroman_bin;
SELECT @@session.collation_database;
@@session.collation_database
macroman_bin
SET @@session.collation_database = cp852_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp852_general_ci
SET @@session.collation_database = cp852_bin;
SELECT @@session.collation_database;
@@session.collation_database
cp852_bin
SET @@session.collation_database = latin7_estonian_cs;
SELECT @@session.collation_database;
@@session.collation_database
latin7_estonian_cs
SET @@session.collation_database = latin7_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
latin7_general_ci
SET @@session.collation_database = latin7_general_cs;
SELECT @@session.collation_database;
@@session.collation_database
latin7_general_cs
SET @@session.collation_database = latin7_bin;
SELECT @@session.collation_database;
@@session.collation_database
latin7_bin
SET @@session.collation_database = cp1251_bulgarian_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp1251_bulgarian_ci
SET @@session.collation_database = cp1251_ukrainian_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp1251_ukrainian_ci
SET @@session.collation_database = cp1251_bin;
SELECT @@session.collation_database;
@@session.collation_database
cp1251_bin
SET @@session.collation_database = cp1251_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp1251_general_ci
SET @@session.collation_database = cp1251_general_cs;
SELECT @@session.collation_database;
@@session.collation_database
cp1251_general_cs
SET @@session.collation_database = cp1256_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp1256_general_ci
SET @@session.collation_database = cp1256_bin;
SELECT @@session.collation_database;
@@session.collation_database
cp1256_bin
SET @@session.collation_database = cp1257_lithuanian_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp1257_lithuanian_ci
SET @@session.collation_database = cp1257_bin;
SELECT @@session.collation_database;
@@session.collation_database
cp1257_bin
SET @@session.collation_database = cp1257_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp1257_general_ci
SET @@session.collation_database = binary;
SELECT @@session.collation_database;
@@session.collation_database
binary
SET @@session.collation_database = geostd8_general_ci;
SELECT @@session.collation_database;
@@session.collation_database
geostd8_general_ci
SET @@session.collation_database = geostd8_bin;
SELECT @@session.collation_database;
@@session.collation_database
geostd8_bin
SET @@session.collation_database = cp932_japanese_ci;
SELECT @@session.collation_database;
@@session.collation_database
cp932_japanese_ci
SET @@session.collation_database = cp932_bin;
SELECT @@session.collation_database;
@@session.collation_database
cp932_bin
SET @@session.collation_database = eucjpms_japanese_ci;
SELECT @@session.collation_database;
@@session.collation_database
eucjpms_japanese_ci
SET @@session.collation_database = eucjpms_bin;
SELECT @@session.collation_database;
@@session.collation_database
eucjpms_bin
'#--------------------FN_DYNVARS_016_07-------------------------#'
SET @@global.collation_database = big5_chinese_ci;
SELECT @@global.collation_database;
@@global.collation_database
big5_chinese_ci
SET @@global.collation_database = big5_bin;
SELECT @@global.collation_database;
@@global.collation_database
big5_bin
SET @@global.collation_database = dec8_swedish_ci;
SELECT @@global.collation_database;
@@global.collation_database
dec8_swedish_ci
SET @@global.collation_database = dec8_bin;
SELECT @@global.collation_database;
@@global.collation_database
dec8_bin
SET @@global.collation_database = cp850_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp850_general_ci
SET @@global.collation_database = cp850_bin;
SELECT @@global.collation_database;
@@global.collation_database
cp850_bin
SET @@global.collation_database = hp8_english_ci;
SELECT @@global.collation_database;
@@global.collation_database
hp8_english_ci
SET @@global.collation_database = hp8_bin;
SELECT @@global.collation_database;
@@global.collation_database
hp8_bin
SET @@global.collation_database = koi8r_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
koi8r_general_ci
SET @@global.collation_database = koi8r_bin;
SELECT @@global.collation_database;
@@global.collation_database
koi8r_bin
SET @@global.collation_database = latin1_german1_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin1_german1_ci
SET @@global.collation_database = latin1_swedish_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin1_swedish_ci
SET @@global.collation_database = latin1_danish_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin1_danish_ci
SET @@global.collation_database = latin1_german2_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin1_german2_ci
SET @@global.collation_database = latin1_bin;
SELECT @@global.collation_database;
@@global.collation_database
latin1_bin
SET @@global.collation_database = latin1_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin1_general_ci
SET @@global.collation_database = latin1_general_cs;
SELECT @@global.collation_database;
@@global.collation_database
latin1_general_cs
SET @@global.collation_database = latin1_spanish_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin1_spanish_ci
SET @@global.collation_database = latin2_czech_cs;
SELECT @@global.collation_database;
@@global.collation_database
latin2_czech_cs
SET @@global.collation_database = latin2_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin2_general_ci
SET @@global.collation_database = latin2_hungarian_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin2_hungarian_ci
SET @@global.collation_database = latin2_croatian_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin2_croatian_ci
SET @@global.collation_database = latin2_bin;
SELECT @@global.collation_database;
@@global.collation_database
latin2_bin
SET @@global.collation_database = swe7_swedish_ci;
SELECT @@global.collation_database;
@@global.collation_database
swe7_swedish_ci
SET @@global.collation_database = swe7_bin;
SELECT @@global.collation_database;
@@global.collation_database
swe7_bin
SET @@global.collation_database = ascii_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
ascii_general_ci
SET @@global.collation_database = ascii_bin;
SELECT @@global.collation_database;
@@global.collation_database
ascii_bin
SET @@global.collation_database = ujis_japanese_ci;
SELECT @@global.collation_database;
@@global.collation_database
ujis_japanese_ci
SET @@global.collation_database = ujis_bin;
SELECT @@global.collation_database;
@@global.collation_database
ujis_bin
SET @@global.collation_database = sjis_japanese_ci;
SELECT @@global.collation_database;
@@global.collation_database
sjis_japanese_ci
SET @@global.collation_database = sjis_bin;
SELECT @@global.collation_database;
@@global.collation_database
sjis_bin
SET @@global.collation_database = hebrew_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
hebrew_general_ci
SET @@global.collation_database = hebrew_bin;
SELECT @@global.collation_database;
@@global.collation_database
hebrew_bin
SET @@global.collation_database = tis620_thai_ci;
SELECT @@global.collation_database;
@@global.collation_database
tis620_thai_ci
SET @@global.collation_database = tis620_bin;
SELECT @@global.collation_database;
@@global.collation_database
tis620_bin
SET @@global.collation_database = euckr_korean_ci;
SELECT @@global.collation_database;
@@global.collation_database
euckr_korean_ci
SET @@global.collation_database = euckr_bin;
SELECT @@global.collation_database;
@@global.collation_database
euckr_bin
SET @@global.collation_database = koi8u_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
koi8u_general_ci
SET @@global.collation_database = koi8u_bin;
SELECT @@global.collation_database;
@@global.collation_database
koi8u_bin
SET @@global.collation_database = gb2312_chinese_ci;
SELECT @@global.collation_database;
@@global.collation_database
gb2312_chinese_ci
SET @@global.collation_database = gb2312_bin;
SELECT @@global.collation_database;
@@global.collation_database
gb2312_bin
SET @@global.collation_database = greek_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
greek_general_ci
SET @@global.collation_database = greek_bin;
SELECT @@global.collation_database;
@@global.collation_database
greek_bin
SET @@global.collation_database = cp1250_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp1250_general_ci
SET @@global.collation_database = cp1250_czech_cs;
SELECT @@global.collation_database;
@@global.collation_database
cp1250_czech_cs
SET @@global.collation_database = cp1250_croatian_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp1250_croatian_ci
SET @@global.collation_database = cp1250_bin;
SELECT @@global.collation_database;
@@global.collation_database
cp1250_bin
SET @@global.collation_database = cp1250_polish_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp1250_polish_ci
SET @@global.collation_database = gbk_chinese_ci;
SELECT @@global.collation_database;
@@global.collation_database
gbk_chinese_ci
SET @@global.collation_database = gbk_bin;
SELECT @@global.collation_database;
@@global.collation_database
gbk_bin
SET @@global.collation_database = latin5_turkish_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin5_turkish_ci
SET @@global.collation_database = latin5_bin;
SELECT @@global.collation_database;
@@global.collation_database
latin5_bin
SET @@global.collation_database = armscii8_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
armscii8_general_ci
SET @@global.collation_database = armscii8_bin;
SELECT @@global.collation_database;
@@global.collation_database
armscii8_bin
SET @@global.collation_database = utf8_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_general_ci
SET @@global.collation_database = utf8_bin;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_bin
SET @@global.collation_database = utf8_unicode_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_unicode_ci
SET @@global.collation_database = utf8_icelandic_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_icelandic_ci
SET @@global.collation_database = utf8_latvian_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_latvian_ci
SET @@global.collation_database = utf8_romanian_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_romanian_ci
SET @@global.collation_database = utf8_slovenian_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_slovenian_ci
SET @@global.collation_database = utf8_polish_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_polish_ci
SET @@global.collation_database = utf8_estonian_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_estonian_ci
SET @@global.collation_database = utf8_spanish_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_spanish_ci
SET @@global.collation_database = utf8_swedish_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_swedish_ci
SET @@global.collation_database = utf8_turkish_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_turkish_ci
SET @@global.collation_database = utf8_czech_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_czech_ci
SET @@global.collation_database = utf8_danish_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_danish_ci
SET @@global.collation_database = utf8_lithuanian_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_lithuanian_ci
SET @@global.collation_database = utf8_slovak_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_slovak_ci
SET @@global.collation_database = utf8_spanish2_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_spanish2_ci
SET @@global.collation_database = utf8_roman_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_roman_ci
SET @@global.collation_database = utf8_persian_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_persian_ci
SET @@global.collation_database = utf8_esperanto_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_esperanto_ci
SET @@global.collation_database = utf8_hungarian_ci;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_hungarian_ci
SET @@global.collation_database = utf8_thai_520_w2;
SELECT @@global.collation_database;
@@global.collation_database
utf8mb3_thai_520_w2
SET @@global.collation_database = ucs2_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_general_ci
SET @@global.collation_database = ucs2_bin;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_bin
SET @@global.collation_database = ucs2_unicode_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_unicode_ci
SET @@global.collation_database = ucs2_icelandic_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_icelandic_ci
SET @@global.collation_database = ucs2_latvian_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_latvian_ci
SET @@global.collation_database = ucs2_romanian_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_romanian_ci
SET @@global.collation_database = ucs2_slovenian_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_slovenian_ci
SET @@global.collation_database = ucs2_polish_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_polish_ci
SET @@global.collation_database = ucs2_estonian_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_estonian_ci
SET @@global.collation_database = ucs2_spanish_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_spanish_ci
SET @@global.collation_database = ucs2_swedish_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_swedish_ci
SET @@global.collation_database = ucs2_turkish_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_turkish_ci
SET @@global.collation_database = ucs2_czech_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_czech_ci
SET @@global.collation_database = ucs2_danish_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_danish_ci
SET @@global.collation_database = ucs2_lithuanian_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_lithuanian_ci
SET @@global.collation_database = ucs2_slovak_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_slovak_ci
SET @@global.collation_database = ucs2_spanish2_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_spanish2_ci
SET @@global.collation_database = ucs2_roman_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_roman_ci
SET @@global.collation_database = ucs2_persian_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_persian_ci
SET @@global.collation_database = ucs2_esperanto_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_esperanto_ci
SET @@global.collation_database = ucs2_hungarian_ci;
SELECT @@global.collation_database;
@@global.collation_database
ucs2_hungarian_ci
SET @@global.collation_database = cp866_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp866_general_ci
SET @@global.collation_database = cp866_bin;
SELECT @@global.collation_database;
@@global.collation_database
cp866_bin
SET @@global.collation_database = keybcs2_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
keybcs2_general_ci
SET @@global.collation_database = keybcs2_bin;
SELECT @@global.collation_database;
@@global.collation_database
keybcs2_bin
SET @@global.collation_database = macce_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
macce_general_ci
SET @@global.collation_database = macce_bin;
SELECT @@global.collation_database;
@@global.collation_database
macce_bin
SET @@global.collation_database = macroman_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
macroman_general_ci
SET @@global.collation_database = macroman_bin;
SELECT @@global.collation_database;
@@global.collation_database
macroman_bin
SET @@global.collation_database = cp852_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp852_general_ci
SET @@global.collation_database = cp852_bin;
SELECT @@global.collation_database;
@@global.collation_database
cp852_bin
SET @@global.collation_database = latin7_estonian_cs;
SELECT @@global.collation_database;
@@global.collation_database
latin7_estonian_cs
SET @@global.collation_database = latin7_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
latin7_general_ci
SET @@global.collation_database = latin7_general_cs;
SELECT @@global.collation_database;
@@global.collation_database
latin7_general_cs
SET @@global.collation_database = latin7_bin;
SELECT @@global.collation_database;
@@global.collation_database
latin7_bin
SET @@global.collation_database = cp1251_bulgarian_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp1251_bulgarian_ci
SET @@global.collation_database = cp1251_ukrainian_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp1251_ukrainian_ci
SET @@global.collation_database = cp1251_bin;
SELECT @@global.collation_database;
@@global.collation_database
cp1251_bin
SET @@global.collation_database = cp1251_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp1251_general_ci
SET @@global.collation_database = cp1251_general_cs;
SELECT @@global.collation_database;
@@global.collation_database
cp1251_general_cs
SET @@global.collation_database = cp1256_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp1256_general_ci
SET @@global.collation_database = cp1256_bin;
SELECT @@global.collation_database;
@@global.collation_database
cp1256_bin
SET @@global.collation_database = cp1257_lithuanian_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp1257_lithuanian_ci
SET @@global.collation_database = cp1257_bin;
SELECT @@global.collation_database;
@@global.collation_database
cp1257_bin
SET @@global.collation_database = cp1257_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp1257_general_ci
SET @@global.collation_database = binary;
SELECT @@global.collation_database;
@@global.collation_database
binary
SET @@global.collation_database = geostd8_general_ci;
SELECT @@global.collation_database;
@@global.collation_database
geostd8_general_ci
SET @@global.collation_database = geostd8_bin;
SELECT @@global.collation_database;
@@global.collation_database
geostd8_bin
SET @@global.collation_database = cp932_japanese_ci;
SELECT @@global.collation_database;
@@global.collation_database
cp932_japanese_ci
SET @@global.collation_database = cp932_bin;
SELECT @@global.collation_database;
@@global.collation_database
cp932_bin
SET @@global.collation_database = eucjpms_japanese_ci;
SELECT @@global.collation_database;
@@global.collation_database
eucjpms_japanese_ci
SET @@global.collation_database = eucjpms_bin;
SELECT @@global.collation_database;
@@global.collation_database
eucjpms_bin
'#--------------------FN_DYNVARS_016_08-------------------------#'
SET @@collation_database = LATIN7_GENERAL_CS;
SELECT @@collation_database;
@@collation_database
latin7_general_cs
SET @@collation_database = latin7_general_cs;
SELECT @@collation_database;
@@collation_database
latin7_general_cs
SET @@global.collation_database = Latin7_GeneRal_cS;
SELECT @@global.collation_database;
@@global.collation_database
latin7_general_cs
'#--------------------FN_DYNVARS_016_09-------------------------#'
SET @@collation_database = 1;
SELECT @@collation_database;
@@collation_database
big5_chinese_ci
SET @@collation_database = 2;
SELECT @@collation_database;
@@collation_database
latin2_czech_cs
SET @@collation_database = 3;
SELECT @@collation_database;
@@collation_database
dec8_swedish_ci
SET @@collation_database = 99;
SELECT @@collation_database;
@@collation_database
cp1250_polish_ci
SET @@collation_database = 100;
ERROR HY000: Unknown collation: '100'
SET @@global.collation_database = 1;
SELECT @@global.collation_database;
@@global.collation_database
big5_chinese_ci
SET @@global.collation_database = 2;
SELECT @@global.collation_database;
@@global.collation_database
latin2_czech_cs
SET @@global.collation_database = 3;
SELECT @@global.collation_database;
@@global.collation_database
dec8_swedish_ci
SET @@global.collation_database = 99;
SELECT @@global.collation_database;
@@global.collation_database
cp1250_polish_ci
SET @@global.collation_database = 100;
ERROR HY000: Unknown collation: '100'
SET @total_collations = (SELECT count(*) FROM INFORMATION_SCHEMA.COLLATIONS);
SELECT @total_collations > 120;
@total_collations > 120
1
'#--------------------FN_DYNVARS_016_10-------------------------#'
SET @@collation_database = latin7_binary;
ERROR HY000: Unknown collation: 'latin7_binary'
SET @@collation_database = 'eucjpms_japanese_cs';
ERROR HY000: Unknown collation: 'eucjpms_japanese_cs'
SET @@collation_database = 0;
ERROR HY000: Unknown collation: '0'
SET @@collation_database = 1.01;
ERROR 42000: Incorrect argument type to variable 'collation_database'
SET @@collation_database = -1;
ERROR HY000: Unknown collation: '-1'
SET @@collation_database = '';
ERROR HY000: Unknown collation: ''
SET @@collation_database = ' eucjpms_bin';
ERROR HY000: Unknown collation: ' eucjpms_bin'
SET @@collation_database = true;
SELECT @@collation_database AS res_with_true;
res_with_true
big5_chinese_ci
SET @@collation_database = ON;
ERROR HY000: Unknown collation: 'ON'
'#--------------------FN_DYNVARS_016_11-------------------------#'
SET @@global.collation_database = latin7_binary;
ERROR HY000: Unknown collation: 'latin7_binary'
SET @@global.collation_database = 'eucjpms_japanese_cs';
ERROR HY000: Unknown collation: 'eucjpms_japanese_cs'
SET @@global.collation_database = 0;
ERROR HY000: Unknown collation: '0'
SET @@global.collation_database = 1.1;
ERROR 42000: Incorrect argument type to variable 'collation_database'
SET @@global.collation_database = -1;
ERROR HY000: Unknown collation: '-1'
SET @@global.collation_database = "";
ERROR HY000: Unknown collation: ''
SET @@global.collation_database = ' eucjpms_bin';
ERROR HY000: Unknown collation: ' eucjpms_bin'
SET @@global.collation_database = true;
SET @@global.collation_database = ON;
ERROR HY000: Unknown collation: 'ON'
'#--------------------FN_DYNVARS_016_12-------------------------#'
SELECT @@global.collation_database =
(SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='collation_database') AS res;
res
1
SET @@global.collation_database = 1;
SELECT @@global.collation_database;
@@global.collation_database
big5_chinese_ci
SELECT @@global.collation_database =
(SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='collation_database') AS res;
res
1
'#--------------------FN_DYNVARS_016_13-------------------------#'
SELECT @@collation_database =
(SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='collation_database') AS res;
res
1
SELECT @@local.collation_database =
(SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='collation_database') AS res;
res
1
SELECT @@session.collation_database =
(SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='collation_database') AS res;
res
1
SET @@global.collation_database = @global_start_value;
SET @@session.collation_database = @session_start_value;