1--source include/have_gtid.inc
2--source include/have_debug.inc
3--source include/have_binlog_format_row.inc
4
5#
6# Test case for BUG#13738296
7#
8#
9
10--disable_result_log
11--disable_query_log
12CREATE TABLE t (a VARCHAR(1000000)) ENGINE = InnoDB;
13BEGIN;
14 INSERT INTO t VALUES (REPEAT('a', 20000));
15 SAVEPOINT sp;
16 INSERT INTO t VALUES (REPEAT('a', 20000));
17 ROLLBACK TO sp;
18COMMIT;
19
20DROP TABLE t;
21
22# If the bug had not been fixed, this would result in an
23# error stating that the binlog could not be read.
24SHOW BINLOG EVENTS;
25--enable_result_log
26--enable_query_log
27
28--echo PASS
29