polardbxengine/mysql-test/suite/binlog_gtid/t/binlog_gtid_cache.test

31 lines
604 B
Plaintext

--source include/have_debug.inc
--source include/have_binlog_format_row.inc
#
# Test case for BUG#13738296
#
#
--disable_result_log
--disable_query_log
SET sql_mode = 'NO_ENGINE_SUBSTITUTION';
CREATE TABLE t (a VARCHAR(1000000)) ENGINE = InnoDB;
BEGIN;
INSERT INTO t VALUES (REPEAT('a', 20000));
SAVEPOINT sp;
INSERT INTO t VALUES (REPEAT('a', 20000));
ROLLBACK TO sp;
COMMIT;
SET sql_mode = default;
DROP TABLE t;
# If the bug had not been fixed, this would result in an
# error stating that the binlog could not be read.
SHOW BINLOG EVENTS;
--enable_result_log
--enable_query_log
--echo PASS