~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to mysql-test/suite/engines/funcs/t/rpl_row_inexist_tbl.test

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Test to see what slave says when master is updating a table it does
 
2
# not have
 
3
--source include/have_binlog_format_row.inc
 
4
 
 
5
source include/master-slave.inc;
 
6
 
 
7
connection master;
 
8
create table t1 (a int not null primary key);
 
9
insert into  t1 values (1);
 
10
create table t2 (a int);
 
11
insert into  t2 values (1);
 
12
update t1, t2 set t1.a = 0 where t1.a = t2.a;
 
13
 
 
14
sync_slave_with_master;
 
15
# t2 should not have been replicated
 
16
# t1 should have been properly updated 
 
17
show tables;
 
18
select * from t1;
 
19
drop table t1;
 
20
 
 
21
connection master;
 
22
insert into t1 values (1);
 
23
 
 
24
connection slave;
 
25
# slave should have stopped because can't find table t1
 
26
wait_for_slave_to_stop;
 
27
# see if we have a good error message:
 
28
--replace_result $MASTER_MYPORT MASTER_MYPORT
 
29
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #
 
30
--vertical_results
 
31
show slave status;
 
32
 
 
33
# cleanup
 
34
connection master;
 
35
drop table t1, t2;