Debian Codegraph @

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

raw
1 include/master-slave.inc
2 [connection master]
3 #
4 # MDEV-6409 CREATE VIEW replication problem if error occurs in mysql_register_view
5 #
6 # Check the bug where if an error occurs in mysql_register_view the view
7 # is still replicated to the slave
8 #
9 connection master;
10 create table t1 (a int);
11 insert into t1 values (1);
12 create view v1 as select a from t1;
13 insert into v1 values (2);
14 select * from v1 order by a;
15 a
16 1
17 2
18 connection slave;
19 show tables;
20 Tables_in_test
21 t1
22 v1
23 connection master;
24 SET @saved_dbug = @@SESSION.debug_dbug;
25 set @@debug_dbug="d,simulate_register_view_failure";
26 CREATE VIEW v2 as SELECT * FROM t1;
27 ERROR HY000: Out of memory.
28 show tables;
29 Tables_in_test
30 t1
31 v1
32 connection slave;
33 show tables;
34 Tables_in_test
35 t1
36 v1
37 connection master;
38 DROP VIEW IF EXISTS v1;
39 DROP TABLE t1;
40 SET debug_dbug= @saved_dbug;
41 include/rpl_end.inc