Debian Codegraph @

mysql-test/suite/rpl/t/rpl_drop_view.test

raw
1 # test case for bug#30998
2 # Drop View breaks replication if view does not exist
3 #
4
5 source include/master-slave.inc;
6 --disable_warnings
7 drop table if exists t1, t2;
8 drop view if exists v1, v2, v3, not_exist_view;
9 --enable_warnings
10 create table t1 (a int);
11 create table t2 (b int);
12 create table t3 (c int);
13 create view v1 as select * from t1;
14 create view v2 as select * from t2;
15 create view v3 as select * from t3;
16 --error ER_UNKNOWN_VIEW
17 drop view not_exist_view;
18 --error ER_UNKNOWN_VIEW
19 drop view v1, not_exist_view;
20 --error 1146
21 select * from v1;
22 drop view v2, v3;
23 sync_slave_with_master;
24 --error 1146
25 select * from v1;
26 --error 1146
27 select * from v2;
28 --error 1146
29 select * from v3;
30
31 --echo ==== clean up ====
32 connection master;
33 drop table t1, t2, t3;
34 sync_slave_with_master;
35 --source include/rpl_end.inc