Debian Codegraph @

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

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection master]
6 ==== Test Without sql_mode=strict_trans_tables ====
7 [on master]
8 create table t1 (n int not null primary key);
9 [on slave]
10 include/sync_slave_sql_with_master.inc
11 insert into t1 values (1);
12 [on master]
13 insert into t1 values (1);
14 insert into t1 values (2),(3);
15 include/sync_slave_sql_with_master.inc
16 [on slave]
17 select * from t1 order by n;
18 n
19 1
20 2
21 3
22 ==== Test With sql_mode=strict_trans_tables ====
23 insert into t1 values (7),(8);
24 [on master]
25 set sql_mode=strict_trans_tables;
26 Warnings:
27 Warning 3135 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
28 insert into t1 values (7), (8), (9);
29 [on slave]
30 include/sync_slave_sql_with_master.inc
31 select * from t1 order by n;
32 n
33 1
34 2
35 3
36 7
37 8
38 include/check_slave_is_running.inc
39 ==== Clean Up ====
40 drop table t1;
41 include/sync_slave_sql_with_master.inc
42 create table t1(a int primary key);
43 insert into t1 values (1),(2);
44 SET SQL_LOG_BIN=0;
45 delete from t1;
46 SET SQL_LOG_BIN=1;
47 set sql_mode=strict_trans_tables;
48 Warnings:
49 Warning 3135 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
50 insert into t1 values (1), (2), (3);
51 [on slave]
52 include/sync_slave_sql_with_master.inc
53 select * from t1;
54 a
55 1
56 2
57 include/check_slave_is_running.inc
58 ==== Clean Up ====
59 drop table t1;
60 include/sync_slave_sql_with_master.inc
61 ==== Using Innodb ====
62 SET SQL_LOG_BIN=0;
63 CREATE TABLE t1(id INT NOT NULL PRIMARY KEY, data INT) Engine=InnoDB;
64 SHOW CREATE TABLE t1;
65 Table Create Table
66 t1 CREATE TABLE `t1` (
67 `id` int NOT NULL,
68 `data` int DEFAULT NULL,
69 PRIMARY KEY (`id`)
70 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
71 SET SQL_LOG_BIN=1;
72 call mtr.add_suppression("Replica SQL.*Could not execute .*te_rows event on table test.t.; Duplicate entry.* Error_code: 1062");
73 CREATE TABLE t1(id INT NOT NULL PRIMARY KEY, data INT) Engine=InnoDB;
74 SHOW CREATE TABLE t1;
75 Table Create Table
76 t1 CREATE TABLE `t1` (
77 `id` int NOT NULL,
78 `data` int DEFAULT NULL,
79 PRIMARY KEY (`id`)
80 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
81 INSERT INTO t1 VALUES(1, 1);
82 INSERT INTO t1 VALUES(2, 1);
83 INSERT INTO t1 VALUES(3, 1);
84 INSERT INTO t1 VALUES(4, 1);
85 SET SQL_LOG_BIN=0;
86 DELETE FROM t1 WHERE id = 4;
87 SET SQL_LOG_BIN=1;
88 UPDATE t1 SET id= id + 3, data = 2;
89 include/sync_slave_sql_with_master.inc
90
91 **** We cannot execute a select as there are differences in the
92 **** behavior between STMT and RBR.
93 ==== Clean Up ====
94 DROP TABLE t1;
95 include/sync_slave_sql_with_master.inc
96 include/rpl_end.inc