File: binlog_table_map_optional_metadata_ucs2.result

package info (click to toggle)
mariadb-10.5 1%3A10.5.23-0%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 712,240 kB
  • sloc: ansic: 2,158,658; cpp: 1,843,101; asm: 297,745; perl: 59,967; sh: 53,869; pascal: 38,348; java: 33,919; yacc: 19,639; python: 11,119; xml: 10,126; sql: 10,027; ruby: 8,544; makefile: 6,343; cs: 2,866; lex: 1,205; javascript: 1,037; objc: 80; tcl: 73; awk: 46; php: 22; sed: 16
file content (65 lines) | stat: -rw-r--r-- 2,690 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
RESET MASTER;
#
# Verify that SET string values and character sets can be printed correctly
#
SET NAMES utf8;
CREATE TABLE t1(
c_set_1 SET("set1_v1_å", "set1_v2_ä", "set1_v3_ö"),
c_set_2 SET("set2_v1_å", "set2_v2_ä", "set2_v3_ö") CHARACTER SET ucs2);
SET GLOBAL binlog_row_metadata = MINIMAL;
INSERT INTO t1 VALUES("set1_v1_å", "set2_v2_ä");
# Columns(SET,
#         SET)
RESET MASTER;
SET GLOBAL binlog_row_metadata = FULL;
INSERT INTO t1 VALUES("set1_v1_å", "set2_v2_ä");
# Columns(`c_set_1` SET('set1_v1_','set1_v2_','set1_v3_') CHARSET latin1 COLLATE latin1_swedish_ci,
#         `c_set_2` SET('\0s\0e\0t\02\0_\0v\01\0_\0','\0s\0e\0t\02\0_\0v\02\0_\0','\0s\0e\0t\02\0_\0v\03\0_\0') CHARSET ucs2 COLLATE ucs2_general_ci)
INSERT INTO t1 VALUES("set1_v3_ö", "set2_v3_ö");
INSERT INTO t1 VALUES("set1_v1_å", "set2_v1_å");
SELECT c_set_1, HEX(c_set_1) FROM t1;
c_set_1	HEX(c_set_1)
set1_v1_å	736574315F76315FE5
set1_v1_å	736574315F76315FE5
set1_v3_ö	736574315F76335FF6
set1_v1_å	736574315F76315FE5
SELECT c_set_2, HEX(c_set_2) FROM t1;
c_set_2	HEX(c_set_2)
set2_v2_ä	0073006500740032005F00760032005F00E4
set2_v2_ä	0073006500740032005F00760032005F00E4
set2_v3_ö	0073006500740032005F00760033005F00F6
set2_v1_å	0073006500740032005F00760031005F00E5
DROP TABLE t1;
RESET MASTER;
#
# Verify that ENUM string values and character sets can be printed correctly
#
CREATE TABLE t1(
c_enum_1 ENUM("enum1_v1_å", "enum1_v2_ä", "enum1_v3_ö"),
c_enum_2 ENUM("enum2_v1_å", "enum2_v2_ä", "enum2_v3_ö") CHARACTER SET ucs2);
SET GLOBAL binlog_row_metadata = MINIMAL;
INSERT INTO t1 VALUES("enum1_v1_å", "enum2_v2_ä");
# Columns(ENUM,
#         ENUM)
RESET MASTER;
SET GLOBAL binlog_row_metadata = FULL;
INSERT INTO t1 VALUES("enum1_v1_å", "enum2_v2_ä");
# Columns(`c_enum_1` ENUM('enum1_v1_','enum1_v2_','enum1_v3_') CHARSET latin1 COLLATE latin1_swedish_ci,
#         `c_enum_2` ENUM('\0e\0n\0u\0m\02\0_\0v\01\0_\0','\0e\0n\0u\0m\02\0_\0v\02\0_\0','\0e\0n\0u\0m\02\0_\0v\03\0_\0') CHARSET ucs2 COLLATE ucs2_general_ci)
INSERT INTO t1 VALUES("enum1_v3_ö", "enum2_v3_ö");
INSERT INTO t1 VALUES("enum1_v1_å", "enum2_v1_å");
SELECT c_enum_1, HEX(c_enum_1) FROM t1;
c_enum_1	HEX(c_enum_1)
enum1_v1_å	656E756D315F76315FE5
enum1_v1_å	656E756D315F76315FE5
enum1_v3_ö	656E756D315F76335FF6
enum1_v1_å	656E756D315F76315FE5
SELECT c_enum_2, HEX(c_enum_2) FROM t1;
c_enum_2	HEX(c_enum_2)
enum2_v2_ä	0065006E0075006D0032005F00760032005F00E4
enum2_v2_ä	0065006E0075006D0032005F00760032005F00E4
enum2_v3_ö	0065006E0075006D0032005F00760033005F00F6
enum2_v1_å	0065006E0075006D0032005F00760031005F00E5
DROP TABLE t1;
RESET MASTER;
SET GLOBAL binlog_row_metadata = NO_LOG;