1#
2# Check CREATE OR REPLACE TABLE for test that requires DEBUG
3#
4
5--source include/have_debug.inc
6--source include/have_binlog_format_row.inc
7--source include/have_innodb.inc
8--source include/master-slave.inc
9
10--disable_warnings
11drop table if exists t1;
12--enable_warnings
13SET @old_debug= @@session.debug;
14
15#
16# MDEV-5854
17# Interrupted CREATE OR REPLACE is written into binlog, and in a wrong format
18#
19
20CREATE TABLE t1 (i INT, KEY(i)) ENGINE=InnoDB;
21CREATE OR REPLACE TEMPORARY TABLE tmp (a int, b int, key(a)) engine=myisam;
22SET debug_dbug='+d,send_kill_after_delete';
23CREATE OR REPLACE TABLE t1 LIKE tmp;
24SET debug_dbug=@old_debug;
25SHOW TABLES;
26show create table t1;
27--sync_slave_with_master
28SHOW TABLES;
29--connection master
30
31--disable_warnings
32drop temporary table if exists tmp;
33--enable_warnings
34drop table t1;
35--source include/rpl_end.inc
36