polardbxengine/mysql-test/suite/binlog_nogtid/t/binlog_row_binlog.test

24 lines
780 B
Plaintext

-- source include/have_debug_new.inc
-- source include/have_binlog_format_row.inc
#
# BUG#46554: RBR: pending rows event can be flushed too soon sometimes.
SELECT @@session.binlog_row_image INTO @saved_binlog_row_image;
SET binlog_row_image= MINIMAL;
SHOW VARIABLES LIKE 'binlog_row_image';
RESET MASTER;
CREATE TABLE t1(a INT PRIMARY KEY, data VARCHAR(100)) ENGINE=Innodb;
INSERT INTO t1 VALUES (1,'a'), (2,'b'), (3, 'c');
## before the patch there would be 3 delete row events
DELETE FROM t1;
-- source include/show_binlog_events.inc
DROP TABLE t1;
SET binlog_row_image= @saved_binlog_row_image;
# This is a wrapper for binlog.test so that the same test case can be used
# For both statement and row based bin logs 9/19/2005 [jbm]
-- source extra/binlog_tests/binlog.test