--source include/have_gtid.inc
--source include/have_debug.inc
--source include/have_binlog_format_row.inc

#
# Test case for BUG#13738296
#
#

--disable_result_log
--disable_query_log
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;

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
