summaryrefslogtreecommitdiff
path: root/mysql-test/suite/binlog/t/innodb_autoinc_lock_mode_binlog.test
blob: 283862ec3be9f33eac809386df55ed72f4c06aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--source include/have_innodb.inc
--source include/have_binlog_format_mixed.inc
reset master; #clear up binlogs
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");

select @@innodb_autoinc_lock_mode;
select @@binlog_format;

create table t1 (a int not null auto_increment,b int, primary key (a)) engine=InnoDB;
insert into t1 values (NULL,1);
--source include/show_binlog_events.inc

set global binlog_format=STATEMENT;
--connect (con1,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK)
insert into t1 values (NULL,1);
insert into t1 values (NULL,1);
--disconnect con1
--connection default

set global binlog_format=MIXED;
DROP TABLE t1;