MINI MINI MANI MO

Path : /opt/mysql/mysql-test/suite/binlog/r/
File Upload :
Current File : //opt/mysql/mysql-test/suite/binlog/r/binlog_stm_delete_all_rows.result

#
# MyISAM, binlog_format= STATEMENT
#
CREATE TABLE t1 (c1 INT) ENGINE=MyISAM;
INSERT INTO t1 VALUES (1), (2), (3);

SET sql_log_bin= 0;
include/assert.inc [DELETE will use delete_all_rows]
DELETE FROM t1;
include/assert.inc [DELETE was not binlogged]

SET sql_log_bin= 1;
INSERT INTO t1 VALUES (1), (2), (3);
include/assert.inc [DELETE will use delete_all_rows]
DELETE FROM t1;
include/assert.inc [DELETE was binlogged]
DROP TABLE t1;

#
# InnoDB, binlog_format= STATEMENT
#
CREATE TABLE t1 (c1 INT) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1), (2), (3);

SET sql_log_bin= 0;
include/assert.inc [DELETE will use delete_all_rows]
DELETE FROM t1;
include/assert.inc [DELETE was not binlogged]

SET sql_log_bin= 1;
INSERT INTO t1 VALUES (1), (2), (3);
include/assert.inc [DELETE will use delete_all_rows]
DELETE FROM t1;
include/assert.inc [DELETE was binlogged]
DROP TABLE t1;

OHA YOOOO