summaryrefslogtreecommitdiff
path: root/mysql-test/suite/rpl/r/rpl_stm_sql_mode.result
blob: 8a28eca37b8ef7e1e19f79fe54d5ae74a4d89190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include/master-slave.inc
[connection master]
CREATE TABLE t1 (pk integer auto_increment , primary key (pk));
SET SESSION SQL_MODE='traditional';
# **** [MASTER] *****
# action: raise DUP KEY error (error code should be set in the 
#                              query log event)
INSERT INTO t1 (`pk`) VALUES (1), (1);
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
DROP TABLE t1;
# **** [ sync slave with master ] ****
# assertion: sync slave with master makes slave not to stop with
#            duplicate key error (because it has received event
#            with expected error code).
connection slave;
include/rpl_end.inc