Debian Codegraph @

mysql-test/suite/rpl/r/rpl_row_utf32.result

raw
1 include/master-slave.inc
2 [connection master]
3 SET SQL_LOG_BIN=0;
4 CREATE TABLE t1 (c1 char(255) DEFAULT NULL, KEY c1 (c1)) DEFAULT CHARSET=utf32;
5 Warnings:
6 Note 1071 Specified key was too long; max key length is 1000 bytes
7 SET SQL_LOG_BIN=1;
8 connection slave;
9 SET @saved_slave_type_conversions= @@global.slave_type_conversions;
10 include/stop_slave.inc
11 SET GLOBAL SLAVE_TYPE_CONVERSIONS='ALL_NON_LOSSY';
12 include/start_slave.inc
13 SET SQL_LOG_BIN=0;
14 CREATE TABLE t1 ( c1 varchar(255) DEFAULT NULL, KEY c1 (c1)) DEFAULT CHARSET=utf32;
15 Warnings:
16 Note 1071 Specified key was too long; max key length is 1000 bytes
17 SET SQL_LOG_BIN=1;
18 connection master;
19 INSERT INTO t1(c1) VALUES ('insert into t1');
20 DROP TABLE t1;
21 connection slave;
22 #
23 # MDEV-32249 strings/ctype-ucs2.c:2336: my_vsnprintf_utf32: Assertion `(n
24 #
25 #
26 # Testing with VARCHAR
27 #
28 connection slave;
29 include/stop_slave.inc
30 SET GLOBAL SLAVE_TYPE_CONVERSIONS= '';
31 include/start_slave.inc
32 connection master;
33 CREATE TABLE t1 (a INT);
34 connection slave;
35 ALTER TABLE t1 MODIFY a VARCHAR(1) CHARACTER SET utf32;
36 connection master;
37 INSERT INTO t1 VALUES (1);
38 connection slave;
39 include/wait_for_slave_sql_error.inc [errno=1677]
40 SHOW CREATE TABLE t1;
41 Table Create Table
42 t1 CREATE TABLE `t1` (
43 `a` varchar(1) CHARACTER SET utf32 COLLATE utf32_uca1400_ai_ci DEFAULT NULL
44 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
45 SELECT * FROM t1 ORDER BY a;
46 a
47 SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
48 START SLAVE;
49 connection master;
50 DROP TABLE t1;
51 connection slave;
52 #
53 # Testing with CHAR
54 #
55 connection slave;
56 include/stop_slave.inc
57 SET GLOBAL SLAVE_TYPE_CONVERSIONS= '';
58 include/start_slave.inc
59 connection master;
60 CREATE TABLE t1 (a INT);
61 connection slave;
62 ALTER TABLE t1 MODIFY a CHAR(1) CHARACTER SET utf32;
63 connection master;
64 INSERT INTO t1 VALUES (1);
65 connection slave;
66 include/wait_for_slave_sql_error.inc [errno=1677]
67 SHOW CREATE TABLE t1;
68 Table Create Table
69 t1 CREATE TABLE `t1` (
70 `a` char(1) CHARACTER SET utf32 COLLATE utf32_uca1400_ai_ci DEFAULT NULL
71 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
72 SELECT * FROM t1 ORDER BY a;
73 a
74 SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
75 START SLAVE;
76 connection master;
77 DROP TABLE t1;
78 connection slave;
79 connection slave;
80 SET GLOBAL SLAVE_TYPE_CONVERSIONS= @saved_slave_type_conversions;
81 include/stop_slave.inc
82 include/start_slave.inc
83 connection master;
84 include/rpl_end.inc