2
# Bug#48350 truncate temporary table crashes replication
4
# All statements operating on temporary tables should not be binlogged in RBR.
5
# However, before fix of bug#48350, 'TRUNCATE ...' statement on a temporary
6
# table was binlogged in RBR.
9
--source include/master-slave.inc
10
--source include/have_binlog_format_row.inc
12
#This statement is not binlogged in RBR.
13
CREATE TEMPORARY TABLE t1(c1 INTEGER);
14
CREATE TABLE t2(c1 INTEGER);
15
sync_slave_with_master;
17
CREATE TABLE t1(c1 INTEGER);
18
INSERT INTO t1 VALUES(1), (2);
19
INSERT INTO t2 VALUES(1), (2);
26
sync_slave_with_master;
27
# t1 will have nothing, if 'TRUNCATE t1' has been replicate from master to
35
--source include/rpl_end.inc