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