1
###################################
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
###################################
14
-- source include/master-slave.inc
17
eval create table t1 (a int, unique(a)) engine=$engine_type;
19
insert into t1 values(2);
23
insert into t1 values(1),(2);
27
--source include/wait_for_slave_sql_to_stop.inc
28
let $error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Error, 1);
29
let $errno= query_get_value(SHOW SLAVE STATUS, Last_SQL_Errno, 1);
30
--echo Error: "$error" (expected different error codes on master and slave)
31
--echo Errno: "$errno" (expected 0)