~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

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;
 
32
 
 
33
--echo ==== clean up ====
 
34
connection master;
 
35
drop table t1, t2, t3;
 
36
sync_slave_with_master;