~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_drop_view.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 1051
 
17
drop view not_exist_view;
 
18
--error 1051
 
19
drop view v1, not_exist_view;
 
20
--error 1146
 
21
select * from v1;
 
22
drop view v2, v3;
 
23
save_master_pos;
 
24
connection slave;
 
25
sync_with_master;
 
26
--error 1146
 
27
select * from v1;
 
28
--error 1146
 
29
select * from v2;
 
30
--error 1146
 
31
select * from v3;