~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to mysql-test/extra/rpl_tests/rpl_stm_EE_err2.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
###################################
 
2
# Author: JBM
 
3
# Date: 2006-01-11
 
4
# Purpose: Second test case from
 
5
#          rpl_EE_err.test split out
 
6
#          from orginal to make the
 
7
#          first work with both RBR and SBR
 
8
###################################
 
9
#REQUIREMENT: An INSERT with a faked duplicate entry error on
 
10
#master should be replicated to slave and force the slave to stop
 
11
#(since the slave can't cause a faked error to re-occur).
 
12
###################################
 
13
 
 
14
-- source include/master-slave.inc
 
15
 
 
16
connection master;
 
17
eval create table t1 (a int, unique(a)) engine=$engine_type;
 
18
set sql_log_bin=0;
 
19
insert into t1 values(2);
 
20
set sql_log_bin=1;
 
21
save_master_pos;
 
22
--error ER_DUP_ENTRY
 
23
insert into t1 values(1),(2);
 
24
drop table t1;
 
25
save_master_pos;
 
26
connection slave;
 
27
--source include/wait_for_slave_sql_to_stop.inc
 
28
 
 
29
# End of 4.1 tests
 
30