List:Commits« Previous MessageNext Message »
From:Alfranio Correia Date:July 14 2010 5:36pm
Subject:bzr commit into mysql-next-mr-rpl-merge branch (alfranio.correia:3007)
WL#5485
View as plain text  
#At file:///home/acorreia/workspace.sun/repository.mysql.new/bzrwork/wl-5485/mysql-next-mr-rpl-merge/ based on revid:alfranio.correia@stripped

 3007 Alfranio Correia	2010-07-14
      WL#5485

    added:
      mysql-test/extra/rpl_tests/rpl_savepoints.test
      mysql-test/suite/rpl/r/rpl_mixed_savepoints.result
      mysql-test/suite/rpl/r/rpl_row_savepoints.result
      mysql-test/suite/rpl/r/rpl_stm_savepoints.result
      mysql-test/suite/rpl/t/rpl_mixed_savepoints.test
      mysql-test/suite/rpl/t/rpl_row_savepoints.test
      mysql-test/suite/rpl/t/rpl_stm_savepoints.test
    modified:
      mysql-test/extra/rpl_tests/rpl_mixing_engines.inc
      mysql-test/extra/rpl_tests/rpl_mixing_engines.test
      mysql-test/suite/rpl/r/rpl_mixed_mixing_engines.result
      mysql-test/suite/rpl/r/rpl_row_mixing_engines.result
      mysql-test/suite/rpl/r/rpl_stm_mixing_engines.result
=== modified file 'mysql-test/extra/rpl_tests/rpl_mixing_engines.inc'
--- a/mysql-test/extra/rpl_tests/rpl_mixing_engines.inc	2010-01-20 19:08:16 +0000
+++ b/mysql-test/extra/rpl_tests/rpl_mixing_engines.inc	2010-07-14 17:36:36 +0000
@@ -141,6 +141,7 @@ if (`SELECT HEX(@commands) = HEX('config
   let $tb_id= 1;
   let $stmt_id= 1;
   let $commands= '';
+  let $sn= 0;
 
   SET @commands= '';
 }
@@ -183,8 +184,11 @@ while (`SELECT HEX(@commands) != HEX('')
   {
     let $commands= `SELECT @commands`;
   }
-  --echo -b-b-b-b-b-b-b-b-b-b-b- >> $command << -b-b-b-b-b-b-b-b-b-b-b-
-  let $pos_command= query_get_value("SHOW MASTER STATUS", Position, 1);
+  if (`SELECT HEX(@verbose) != HEX('N')`)
+  {
+    --echo -b-b-b-b-b-b-b-b-b-b-b- >> $command << -b-b-b-b-b-b-b-b-b-b-b-
+    let $pos_command= query_get_value("SHOW MASTER STATUS", Position, 1);
+  }
   --enable_query_log
   if (`SELECT HEX(@command) = HEX('B')`)
   {
@@ -514,6 +518,13 @@ while (`SELECT HEX(@commands) != HEX('')
     inc $tb_id;
     --enable_warnings
   }
+  if (`SELECT HEX(@command) = HEX('TEMP-N')`)
+  {
+    --disable_warnings
+    eval DROP TEMPORARY TABLE IF EXISTS tt_xx_$tb_id;
+    inc $tb_id;
+    --enable_warnings
+  }
   if (`SELECT HEX(@command) = HEX('C')`)
   {
     --error 0, ER_GET_ERRMSG
@@ -524,21 +535,31 @@ while (`SELECT HEX(@commands) != HEX('')
     --error 0, ER_GET_ERRMSG
     eval ROLLBACK;
   }
-  if (`SELECT HEX(@command) = HEX('S1')`)
+  if (`SELECT HEX(@command) = HEX('Sn')`)
+  {
+    eval SAVEPOINT S_$sn;
+    --inc $sn 
+  }
+  if (`SELECT HEX(@command) = HEX('Rn')`)
   {
-    eval SAVEPOINT s1; 
+    --dec $sn
+    eval ROLLBACK TO S_$sn;
   }
-  if (`SELECT HEX(@command) = HEX('R1')`)
+  if (`SELECT HEX(@command) = HEX('Cn')`)
   {
-    eval ROLLBACK TO s1; 
+    --dec $sn
+    eval RELEASE SAVEPOINT S_$sn;
   }
   --disable_query_log
   SET @commands= LTRIM(SUBSTRING(@commands, LENGTH(@command) + 1));
   inc $stmt_id;
 
   let $binlog_start= $pos_command;
-  --source include/show_binlog_events.inc
-  --echo -e-e-e-e-e-e-e-e-e-e-e- >> $command << -e-e-e-e-e-e-e-e-e-e-e-
+  if (`SELECT HEX(@verbose) != HEX('N')`)
+  {
+    --source include/show_binlog_events.inc
+    --echo -e-e-e-e-e-e-e-e-e-e-e- >> $command << -e-e-e-e-e-e-e-e-e-e-e-
+  }
   if (`SELECT HEX(@commands) = HEX('')`)
   {
     let $binlog_start= $pos_trans_command;

=== modified file 'mysql-test/extra/rpl_tests/rpl_mixing_engines.test'
--- a/mysql-test/extra/rpl_tests/rpl_mixing_engines.test	2010-04-29 11:20:36 +0000
+++ b/mysql-test/extra/rpl_tests/rpl_mixing_engines.test	2010-07-14 17:36:36 +0000
@@ -159,8 +159,8 @@
 # B - Begin.
 # C - Commit.
 # R - Rollback.
-# S1 - Savepoint.
-# R1 - Rollback to S1.
+# Sn - Savepoint S1.
+# Rn - Rollback to Sn.
 #
 # - Change only T-Tables:
 # T - Updates a T-Table.
@@ -247,6 +247,7 @@
 
 call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
 
+SET @verbose= 'Y';
 SET @commands= 'configure';
 --source extra/rpl_tests/rpl_mixing_engines.inc
 
@@ -1608,16 +1609,16 @@ SET @commands= 'B N TeN-func R';
 --echo ###################################################################################
 --echo #                               2 - SAVEPOINT
 --echo ###################################################################################
-SET @commands= 'B T S1 T R1 C';
+SET @commands= 'B T Sn T Rn C';
 --source extra/rpl_tests/rpl_mixing_engines.inc
 
-SET @commands= 'B N T S1 T R1 C';
+SET @commands= 'B N T Sn T Rn C';
 --source extra/rpl_tests/rpl_mixing_engines.inc
 
-SET @commands= 'B T N S1 T R1 C';
+SET @commands= 'B T N Sn T Rn C';
 --source extra/rpl_tests/rpl_mixing_engines.inc
 
-SET @commands= 'B T S1 N T R1 C';
+SET @commands= 'B T Sn N T Rn C';
 --source extra/rpl_tests/rpl_mixing_engines.inc
 
 --echo ###################################################################################
@@ -1728,7 +1729,7 @@ SET @commands= 'B T CT R';
 SET @commands= 'drop-CT';
 --source extra/rpl_tests/rpl_mixing_engines.inc
 
-SET @commands= 'B T S1 T CT R1 R';
+SET @commands= 'B T Sn T CT Rn R';
 --source extra/rpl_tests/rpl_mixing_engines.inc
 
 SET @commands= 'drop-CT';

=== added file 'mysql-test/extra/rpl_tests/rpl_savepoints.test'
--- a/mysql-test/extra/rpl_tests/rpl_savepoints.test	1970-01-01 00:00:00 +0000
+++ b/mysql-test/extra/rpl_tests/rpl_savepoints.test	2010-07-14 17:36:36 +0000
@@ -0,0 +1,302 @@
+--echo #########################################################################
+--echo #                            CONFIGURATION
+--echo #########################################################################
+
+call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
+
+SET @verbose= 'N';
+SET @commands= 'configure';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+# B Sn N Cn/Rn C/R
+
+SET @commands= 'B T Sn N Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+
+# B Sn T Cn/Rn C/R
+
+SET @commands= 'B T Sn T Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+
+# B Sn M Cn/Rn C/R
+
+SET @commands= 'B T Sn NT Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn NT Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn NT Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn NT Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+
+# B Sn T N Cn/Rn C/R
+
+SET @commands= 'B T Sn T N Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T N Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T N Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T N Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+
+# B Sn T Sn N Cn/Rn Cn/Rn C/R
+
+SET @commands= 'B T Sn T Sn N Cn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T Sn N Rn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T Sn N Rn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T Sn N Cn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T Sn N Cn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T Sn N Rn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T Sn N Rn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T Sn N Cn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+
+# B Sn N Sn T Cn/Rn Cn/Rn C/R
+
+SET @commands= 'B T Sn N Sn T Cn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N Sn T Rn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N Sn T Rn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N Sn T Cn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N Sn T Cn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N Sn T Rn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N Sn T Rn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N Sn T Cn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+
+# B Sn T N Sn Cn/Rn Cn/Rn C/R
+
+SET @commands= 'B T Sn N T Sn Cn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N T Sn Rn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N T Sn Rn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N T Sn Cn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N T Sn Cn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N T Sn Rn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N T Sn Rn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn N T Sn Cn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+
+# B Sn Sn T N Cn/Rn Cn/Rn C/R
+
+SET @commands= 'B T Sn Sn N T Cn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn N T Rn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn N T Rn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn N T Cn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn N T Cn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn N T Rn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn N T Rn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn N T Cn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+
+# B Sn T TEMP-N Cn/Rn C/R
+
+SET @commands= 'B T Sn T TEMP-N Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T TEMP-N Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T TEMP-N Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T TEMP-N Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+
+# B Sn TEMP-N Sn T Cn/Rn Cn/Rn C/R
+
+SET @commands= 'B T Sn TEMP-N Sn T Cn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn TEMP-N Sn T Rn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn TEMP-N Sn T Rn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn TEMP-N Sn T Cn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn TEMP-N Sn T Cn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn TEMP-N Sn T Rn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn TEMP-N Sn T Rn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn TEMP-N Sn T Cn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+
+# B Sn T TEMP-N Sn Cn/Rn Cn/Rn C/R
+
+SET @commands= 'B T Sn T TEMP-N Sn Cn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T TEMP-N Sn Rn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T TEMP-N Sn Rn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T TEMP-N Sn Cn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T TEMP-N Sn Cn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T TEMP-N Sn Rn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T TEMP-N Sn Rn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn T TEMP-N Sn Cn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+
+# B Sn Sn T TEMP-N Sn Cn/Rn C/R
+
+SET @commands= 'B T Sn Sn T TEMP-N Cn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn T TEMP-N Rn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn T TEMP-N Rn Cn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn T TEMP-N Cn Rn C';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn T TEMP-N Cn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn T TEMP-N Rn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn T TEMP-N Rn Cn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+SET @commands= 'B T Sn Sn T TEMP-N Cn Rn R';
+--source extra/rpl_tests/rpl_mixing_engines.inc
+
+
+--echo ###################################################################################
+--echo #                               CHECK CONSISTENCY
+--echo ###################################################################################
+connection master;
+sync_slave_with_master;
+
+let $MYSQLD_DATADIR= `SELECT @@datadir`;
+
+--exec $MYSQL_DUMP --compact --order-by-primary --skip-extended-insert --no-create-info test > $MYSQLD_DATADIR/test-savepoint-master.sql
+--exec $MYSQL_DUMP_SLAVE --compact --order-by-primary --skip-extended-insert --no-create-info test > $MYSQLD_DATADIR/test-savepoint-slave.sql
+--diff_files $MYSQLD_DATADIR/test-savepoint-master.sql $MYSQLD_DATADIR/test-savepoint-slave.sql
+
+--echo #########################################################################
+--echo #                           CLEAN
+--echo #########################################################################
+SET @commands= 'clean';
+--source extra/rpl_tests/rpl_mixing_engines.inc

=== modified file 'mysql-test/suite/rpl/r/rpl_mixed_mixing_engines.result'
--- a/mysql-test/suite/rpl/r/rpl_mixed_mixing_engines.result	2010-06-19 07:50:33 +0000
+++ b/mysql-test/suite/rpl/r/rpl_mixed_mixing_engines.result	2010-07-14 17:36:36 +0000
@@ -8,6 +8,7 @@ start slave;
 #                            CONFIGURATION
 #########################################################################
 call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
+SET @verbose= 'Y';
 SET @commands= 'configure';
 SET SQL_LOG_BIN=0;
 CREATE TABLE nt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
@@ -10702,18 +10703,18 @@ Log_name	Pos	Event_type	Server_id	End_lo
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (317, 2);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (317, 5);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
@@ -10721,12 +10722,12 @@ master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (317, 2)
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T S1 T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (317, 2)
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B T S1 T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> B << -b-b-b-b-b-b-b-b-b-b-b-
 BEGIN;
@@ -10743,42 +10744,42 @@ master-bin.000001	#	Query	#	#	COMMIT
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 4);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 7);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 4)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B N T S1 T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B N T Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (318, 2)
 master-bin.000001	#	Query	#	#	COMMIT
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 4)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B N T S1 T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B N T Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> B << -b-b-b-b-b-b-b-b-b-b-b-
 BEGIN;
@@ -10796,31 +10797,31 @@ master-bin.000001	#	Table_map	#	#	table_
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
 master-bin.000001	#	Query	#	#	COMMIT
 -e-e-e-e-e-e-e-e-e-e-e- >> N << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (319, 7);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (319, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (319, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T N S1 T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T N Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
@@ -10828,11 +10829,11 @@ master-bin.000001	#	Write_rows	#	#	table
 master-bin.000001	#	Query	#	#	COMMIT
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (319, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (319, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B T N S1 T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T N Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> B << -b-b-b-b-b-b-b-b-b-b-b-
 BEGIN;
@@ -10842,10 +10843,10 @@ Log_name	Pos	Event_type	Server_id	End_lo
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 2);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> N << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO nt_1(trans_id, stmt_id) VALUES (320, 5);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
@@ -10858,23 +10859,23 @@ master-bin.000001	#	Query	#	#	COMMIT
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 7);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T S1 N T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
@@ -10882,11 +10883,11 @@ master-bin.000001	#	Write_rows	#	#	table
 master-bin.000001	#	Query	#	#	COMMIT
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B T S1 N T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 ###################################################################################
 #                            3 - CREATE TABLE...SELECT
@@ -11829,10 +11830,10 @@ Log_name	Pos	Event_type	Server_id	End_lo
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 2);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 5);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
@@ -11841,33 +11842,33 @@ Log_name	Pos	Event_type	Server_id	End_lo
 CREATE TEMPORARY TABLE tt_xx_12 (a int) engine=Innodb;;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> CT << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> R << -b-b-b-b-b-b-b-b-b-b-b-
 ROLLBACK;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 5)
 master-bin.000001	#	Query	#	#	use `test`; CREATE TEMPORARY TABLE tt_xx_12 (a int) engine=Innodb
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Query	#	#	ROLLBACK
 -e-e-e-e-e-e-e-e-e-e-e- >> R << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T S1 T CT R1 R << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T CT Rn R << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 5)
 master-bin.000001	#	Query	#	#	use `test`; CREATE TEMPORARY TABLE tt_xx_12 (a int) engine=Innodb
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Query	#	#	ROLLBACK
--e-e-e-e-e-e-e-e-e-e-e- >> B T S1 T CT R1 R << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T CT Rn R << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> drop-CT << -b-b-b-b-b-b-b-b-b-b-b-
 DROP TEMPORARY TABLE IF EXISTS tt_xx_12;

=== added file 'mysql-test/suite/rpl/r/rpl_mixed_savepoints.result'
--- a/mysql-test/suite/rpl/r/rpl_mixed_savepoints.result	1970-01-01 00:00:00 +0000
+++ b/mysql-test/suite/rpl/r/rpl_mixed_savepoints.result	2010-07-14 17:36:36 +0000
@@ -0,0 +1,1781 @@
+stop slave;
+drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
+reset master;
+reset slave;
+drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
+start slave;
+#########################################################################
+#                            CONFIGURATION
+#########################################################################
+call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
+SET @verbose= 'N';
+SET @commands= 'configure';
+SET SQL_LOG_BIN=0;
+CREATE TABLE nt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE tt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+SET SQL_LOG_BIN=1;
+SET SQL_LOG_BIN=0;
+CREATE TABLE nt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE tt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+SET SQL_LOG_BIN=1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_2(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_3(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_4(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_5(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_6(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_2(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_3(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_4(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_5(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_6(trans_id, stmt_id) VALUES(1,1);
+CREATE PROCEDURE pc_i_tt_5_suc (IN p_trans_id INTEGER, IN p_stmt_id INTEGER)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+END|
+CREATE PROCEDURE pc_i_nt_5_suc (IN p_trans_id INTEGER, IN p_stmt_id INTEGER)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+END|
+CREATE FUNCTION fc_i_tt_5_suc (p_trans_id INTEGER, p_stmt_id INTEGER) RETURNS VARCHAR(64)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+RETURN "fc_i_tt_5_suc";
+END|
+CREATE FUNCTION fc_i_nt_5_suc (p_trans_id INTEGER, p_stmt_id INTEGER) RETURNS VARCHAR(64)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+RETURN "fc_i_nt_5_suc";
+END|
+CREATE TRIGGER tr_i_tt_3_to_nt_3 AFTER INSERT ON tt_3 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_3 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_3(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO nt_3(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+CREATE TRIGGER tr_i_nt_4_to_tt_4 AFTER INSERT ON nt_4 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_4 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id), 1) INTO in_stmt_id;
+INSERT INTO tt_4(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO tt_4(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+CREATE TRIGGER tr_i_tt_5_to_tt_6 AFTER INSERT ON tt_5 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_6 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id, 1), 1) INTO in_stmt_id;
+INSERT INTO tt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO tt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+CREATE TRIGGER tr_i_nt_5_to_nt_6 AFTER INSERT ON nt_5 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_6 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO nt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+SET @commands= '';
+SET @commands= 'B T Sn N Cn C';
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (7, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (7, 5);
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (7, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (8, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (8, 5);
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (8, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (9, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (9, 5);
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (10, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (10, 5);
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (11, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (11, 5);
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (11, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (11, 5)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (12, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (12, 5);
+ROLLBACK TO S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (12, 2)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (13, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (13, 5);
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (14, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (14, 5);
+ROLLBACK TO S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (15, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 15 --> 5", tt_3.info= "new text 15 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (15, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (16, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 16 --> 5", tt_3.info= "new text 16 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (16, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (17, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 17 --> 5", tt_3.info= "new text 17 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (18, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 18 --> 5", tt_3.info= "new text 18 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (19, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (19, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (19, 7);
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (19, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (19, 5)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (20, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (20, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (20, 7);
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (20, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (20, 5)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (21, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (21, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (21, 7);
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (22, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (22, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (22, 7);
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (23, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (23, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (23, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (23, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (23, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (24, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (24, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (24, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (24, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (24, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (25, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (25, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (25, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (25, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (25, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (26, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (26, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (26, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (26, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (26, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (27, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (27, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (27, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (28, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (28, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (28, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (29, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (29, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (29, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (30, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (30, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (30, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (31, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (31, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (31, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (31, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (31, 8)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (32, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (32, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (32, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (32, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (32, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (33, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (33, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (33, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (33, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (33, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (34, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (34, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (34, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (34, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (34, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (35, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (35, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (35, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (36, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (36, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (36, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (37, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (37, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (37, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (38, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (38, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (38, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (39, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (39, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (39, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (39, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (39, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (40, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (40, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (40, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (40, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (40, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (41, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (41, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (41, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (41, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (41, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (42, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (42, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (42, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (42, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (42, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (43, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (43, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (43, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (44, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (44, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (44, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (45, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (45, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (45, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (46, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (46, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (46, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (47, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (47, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (47, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (47, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (47, 8)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (48, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (48, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (48, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (48, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (48, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (49, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (49, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (49, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (49, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (49, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (50, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (50, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (50, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (50, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (50, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (51, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (51, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (51, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (52, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (52, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (52, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (53, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (53, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (53, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (54, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (54, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (54, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (55, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (55, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (55, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (55, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (56, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (56, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_2;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (56, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (56, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_2
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (57, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (57, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_3;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (57, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (57, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_3
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (58, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (58, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_4;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (58, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (58, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_4
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (59, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_5;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (59, 7);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (59, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_5
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (59, 7)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (60, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_6;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (60, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (60, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_6
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (60, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (61, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_7;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (61, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (61, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_7
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (61, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (62, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_8;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (62, 7);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (62, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_8
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (62, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (63, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_9;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (63, 7);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (63, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_9
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (63, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (64, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_10;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (64, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (64, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_10
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (64, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (65, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_11;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (65, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (65, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_11
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (65, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (66, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_12;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (66, 7);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (66, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_12
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (66, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (67, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (67, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_13;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (67, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (67, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_13
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (68, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (68, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_14;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (68, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (68, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_14
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (69, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (69, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_15;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (69, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (69, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_15
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (70, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (70, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_16;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (70, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (70, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_16
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (71, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (71, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_17;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (71, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (71, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_17
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (72, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (72, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_18;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (72, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (72, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_18
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (73, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (73, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_19;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (73, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (73, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_19
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (74, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (74, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_20;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (74, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (74, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_20
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (75, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (75, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_21;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (75, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (75, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_21
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (76, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (76, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_22;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (76, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (76, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_22
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (77, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (77, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_23;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (77, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (77, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_23
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (78, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (78, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_24;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (78, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (78, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_24
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (79, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (79, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_25;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (79, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (79, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_25
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (80, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (80, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_26;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (80, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (80, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_26
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (81, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (81, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_27;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (81, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (81, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_27
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (82, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (82, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_28;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (82, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (82, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_28
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+###################################################################################
+#                               CHECK CONSISTENCY
+###################################################################################
+#########################################################################
+#                           CLEAN
+#########################################################################

=== modified file 'mysql-test/suite/rpl/r/rpl_row_mixing_engines.result'
--- a/mysql-test/suite/rpl/r/rpl_row_mixing_engines.result	2010-06-19 09:24:34 +0000
+++ b/mysql-test/suite/rpl/r/rpl_row_mixing_engines.result	2010-07-14 17:36:36 +0000
@@ -8,6 +8,7 @@ start slave;
 #                            CONFIGURATION
 #########################################################################
 call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
+SET @verbose= 'Y';
 SET @commands= 'configure';
 SET SQL_LOG_BIN=0;
 CREATE TABLE nt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
@@ -12176,18 +12177,18 @@ Log_name	Pos	Event_type	Server_id	End_lo
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (317, 2);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (317, 5);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
@@ -12196,13 +12197,13 @@ master-bin.000001	#	Table_map	#	#	table_
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T S1 T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B T S1 T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> B << -b-b-b-b-b-b-b-b-b-b-b-
 BEGIN;
@@ -12220,33 +12221,33 @@ master-bin.000001	#	Query	#	#	COMMIT
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 4);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 7);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B N T S1 T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B N T Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
@@ -12255,12 +12256,12 @@ master-bin.000001	#	Query	#	#	COMMIT
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B N T S1 T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B N T Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> B << -b-b-b-b-b-b-b-b-b-b-b-
 BEGIN;
@@ -12278,33 +12279,33 @@ master-bin.000001	#	Table_map	#	#	table_
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
 master-bin.000001	#	Query	#	#	COMMIT
 -e-e-e-e-e-e-e-e-e-e-e- >> N << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (319, 7);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T N S1 T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T N Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
@@ -12313,12 +12314,12 @@ master-bin.000001	#	Query	#	#	COMMIT
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B T N S1 T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T N Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> B << -b-b-b-b-b-b-b-b-b-b-b-
 BEGIN;
@@ -12328,10 +12329,10 @@ Log_name	Pos	Event_type	Server_id	End_lo
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 2);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> N << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO nt_1(trans_id, stmt_id) VALUES (320, 5);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
@@ -12344,25 +12345,25 @@ master-bin.000001	#	Query	#	#	COMMIT
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 7);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T S1 N T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
@@ -12371,12 +12372,12 @@ master-bin.000001	#	Query	#	#	COMMIT
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B T S1 N T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 ###################################################################################
 #                            3 - CREATE TABLE...SELECT
@@ -13555,10 +13556,10 @@ Log_name	Pos	Event_type	Server_id	End_lo
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 2);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 5);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
@@ -13567,35 +13568,35 @@ Log_name	Pos	Event_type	Server_id	End_lo
 CREATE TEMPORARY TABLE tt_xx_12 (a int) engine=Innodb;;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> CT << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> R << -b-b-b-b-b-b-b-b-b-b-b-
 ROLLBACK;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Query	#	#	ROLLBACK
 -e-e-e-e-e-e-e-e-e-e-e- >> R << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T S1 T CT R1 R << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T CT Rn R << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
 master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Query	#	#	ROLLBACK
--e-e-e-e-e-e-e-e-e-e-e- >> B T S1 T CT R1 R << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T CT Rn R << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> drop-CT << -b-b-b-b-b-b-b-b-b-b-b-
 DROP TEMPORARY TABLE IF EXISTS tt_xx_12;

=== added file 'mysql-test/suite/rpl/r/rpl_row_savepoints.result'
--- a/mysql-test/suite/rpl/r/rpl_row_savepoints.result	1970-01-01 00:00:00 +0000
+++ b/mysql-test/suite/rpl/r/rpl_row_savepoints.result	2010-07-14 17:36:36 +0000
@@ -0,0 +1,1852 @@
+stop slave;
+drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
+reset master;
+reset slave;
+drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
+start slave;
+#########################################################################
+#                            CONFIGURATION
+#########################################################################
+call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
+SET @verbose= 'N';
+SET @commands= 'configure';
+SET SQL_LOG_BIN=0;
+CREATE TABLE nt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE tt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+SET SQL_LOG_BIN=1;
+SET SQL_LOG_BIN=0;
+CREATE TABLE nt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE tt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+SET SQL_LOG_BIN=1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_2(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_3(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_4(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_5(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_6(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_2(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_3(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_4(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_5(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_6(trans_id, stmt_id) VALUES(1,1);
+CREATE PROCEDURE pc_i_tt_5_suc (IN p_trans_id INTEGER, IN p_stmt_id INTEGER)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+END|
+CREATE PROCEDURE pc_i_nt_5_suc (IN p_trans_id INTEGER, IN p_stmt_id INTEGER)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+END|
+CREATE FUNCTION fc_i_tt_5_suc (p_trans_id INTEGER, p_stmt_id INTEGER) RETURNS VARCHAR(64)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+RETURN "fc_i_tt_5_suc";
+END|
+CREATE FUNCTION fc_i_nt_5_suc (p_trans_id INTEGER, p_stmt_id INTEGER) RETURNS VARCHAR(64)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+RETURN "fc_i_nt_5_suc";
+END|
+CREATE TRIGGER tr_i_tt_3_to_nt_3 AFTER INSERT ON tt_3 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_3 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_3(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO nt_3(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+CREATE TRIGGER tr_i_nt_4_to_tt_4 AFTER INSERT ON nt_4 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_4 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id), 1) INTO in_stmt_id;
+INSERT INTO tt_4(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO tt_4(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+CREATE TRIGGER tr_i_tt_5_to_tt_6 AFTER INSERT ON tt_5 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_6 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id, 1), 1) INTO in_stmt_id;
+INSERT INTO tt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO tt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+CREATE TRIGGER tr_i_nt_5_to_nt_6 AFTER INSERT ON nt_5 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_6 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO nt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+SET @commands= '';
+SET @commands= 'B T Sn N Cn C';
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (7, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (7, 5);
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (8, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (8, 5);
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (9, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (9, 5);
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (10, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (10, 5);
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (11, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (11, 5);
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (12, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (12, 5);
+ROLLBACK TO S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (13, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (13, 5);
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (14, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (14, 5);
+ROLLBACK TO S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (15, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 15 --> 5", tt_3.info= "new text 15 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (16, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 16 --> 5", tt_3.info= "new text 16 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (17, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 17 --> 5", tt_3.info= "new text 17 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (18, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 18 --> 5", tt_3.info= "new text 18 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_3)
+master-bin.000001	#	Update_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (19, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (19, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (19, 7);
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (20, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (20, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (20, 7);
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (21, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (21, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (21, 7);
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (22, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (22, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (22, 7);
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (23, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (23, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (23, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (24, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (24, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (24, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (25, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (25, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (25, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (26, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (26, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (26, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (27, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (27, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (27, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (28, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (28, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (28, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (29, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (29, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (29, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (30, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (30, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (30, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (31, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (31, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (31, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (32, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (32, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (32, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (33, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (33, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (33, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (34, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (34, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (34, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (35, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (35, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (35, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (36, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (36, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (36, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (37, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (37, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (37, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (38, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (38, 5);
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (38, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (39, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (39, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (39, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (40, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (40, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (40, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (41, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (41, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (41, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (42, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (42, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (42, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (43, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (43, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (43, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (44, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (44, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (44, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (45, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (45, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (45, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (46, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (46, 5);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (46, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (47, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (47, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (47, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (48, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (48, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (48, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (49, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (49, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (49, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (50, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (50, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (50, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (51, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (51, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (51, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (52, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (52, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (52, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (53, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (53, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (53, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (54, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (54, 6);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (54, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.nt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	COMMIT
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (55, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (55, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (56, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (56, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_2;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (57, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (57, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_3;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (58, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (58, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_4;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (59, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_5;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (59, 7);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (60, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_6;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (60, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (61, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_7;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (61, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (62, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_8;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (62, 7);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (63, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_9;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (63, 7);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (64, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_10;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (64, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (65, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_11;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (65, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (66, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_12;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (66, 7);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (67, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (67, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_13;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (68, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (68, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_14;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (69, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (69, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_15;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (70, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (70, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_16;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (71, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (71, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_17;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (72, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (72, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_18;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (73, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (73, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_19;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (74, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (74, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_20;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (75, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (75, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_21;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (76, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (76, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_22;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (77, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (77, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_23;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (78, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (78, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_24;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (79, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (79, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_25;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (80, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (80, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_26;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (81, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (81, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_27;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (82, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (82, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_28;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Table_map	#	#	table_id: # (test.tt_1)
+master-bin.000001	#	Write_rows	#	#	table_id: # flags: STMT_END_F
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+###################################################################################
+#                               CHECK CONSISTENCY
+###################################################################################
+#########################################################################
+#                           CLEAN
+#########################################################################

=== modified file 'mysql-test/suite/rpl/r/rpl_stm_mixing_engines.result'
--- a/mysql-test/suite/rpl/r/rpl_stm_mixing_engines.result	2010-06-19 09:24:34 +0000
+++ b/mysql-test/suite/rpl/r/rpl_stm_mixing_engines.result	2010-07-14 17:36:36 +0000
@@ -8,6 +8,7 @@ start slave;
 #                            CONFIGURATION
 #########################################################################
 call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
+SET @verbose= 'Y';
 SET @commands= 'configure';
 SET SQL_LOG_BIN=0;
 CREATE TABLE nt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
@@ -10070,18 +10071,18 @@ Log_name	Pos	Event_type	Server_id	End_lo
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (317, 2);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (317, 5);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
@@ -10089,12 +10090,12 @@ master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (317, 2)
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T S1 T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (317, 2)
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B T S1 T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> B << -b-b-b-b-b-b-b-b-b-b-b-
 BEGIN;
@@ -10111,42 +10112,42 @@ master-bin.000001	#	Query	#	#	COMMIT
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 4);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 7);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 4)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B N T S1 T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B N T Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (318, 2)
 master-bin.000001	#	Query	#	#	COMMIT
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 4)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (318, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B N T S1 T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B N T Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> B << -b-b-b-b-b-b-b-b-b-b-b-
 BEGIN;
@@ -10165,42 +10166,42 @@ master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (319, 4)
 master-bin.000001	#	Query	#	#	COMMIT
 -e-e-e-e-e-e-e-e-e-e-e- >> N << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (319, 7);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (319, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (319, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T N S1 T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T N Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (319, 4)
 master-bin.000001	#	Query	#	#	COMMIT
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (319, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (319, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B T N S1 T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T N Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> B << -b-b-b-b-b-b-b-b-b-b-b-
 BEGIN;
@@ -10210,10 +10211,10 @@ Log_name	Pos	Event_type	Server_id	End_lo
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 2);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> N << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO nt_1(trans_id, stmt_id) VALUES (320, 5);
 Warnings:
@@ -10227,34 +10228,34 @@ master-bin.000001	#	Query	#	#	COMMIT
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 7);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> C << -b-b-b-b-b-b-b-b-b-b-b-
 COMMIT;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
 -e-e-e-e-e-e-e-e-e-e-e- >> C << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T S1 N T R1 C << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (320, 5)
 master-bin.000001	#	Query	#	#	COMMIT
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (320, 7)
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Xid	#	#	COMMIT /* XID */
--e-e-e-e-e-e-e-e-e-e-e- >> B T S1 N T R1 C << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
 
 ###################################################################################
 #                            3 - CREATE TABLE...SELECT
@@ -11162,10 +11163,10 @@ Log_name	Pos	Event_type	Server_id	End_lo
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 2);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> T << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> S1 << -b-b-b-b-b-b-b-b-b-b-b-
-SAVEPOINT s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Sn << -b-b-b-b-b-b-b-b-b-b-b-
+SAVEPOINT S_0;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> S1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Sn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> T << -b-b-b-b-b-b-b-b-b-b-b-
 INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 5);
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
@@ -11174,33 +11175,33 @@ Log_name	Pos	Event_type	Server_id	End_lo
 CREATE TEMPORARY TABLE tt_xx_12 (a int) engine=Innodb;;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 -e-e-e-e-e-e-e-e-e-e-e- >> CT << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> R1 << -b-b-b-b-b-b-b-b-b-b-b-
-ROLLBACK TO s1;
+-b-b-b-b-b-b-b-b-b-b-b- >> Rn << -b-b-b-b-b-b-b-b-b-b-b-
+ROLLBACK TO S_0;
 Warnings:
 Warning	1196	Some non-transactional changed tables couldn't be rolled back
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
--e-e-e-e-e-e-e-e-e-e-e- >> R1 << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> Rn << -e-e-e-e-e-e-e-e-e-e-e-
 -b-b-b-b-b-b-b-b-b-b-b- >> R << -b-b-b-b-b-b-b-b-b-b-b-
 ROLLBACK;
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 5)
 master-bin.000001	#	Query	#	#	use `test`; CREATE TEMPORARY TABLE tt_xx_12 (a int) engine=Innodb
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Query	#	#	ROLLBACK
 -e-e-e-e-e-e-e-e-e-e-e- >> R << -e-e-e-e-e-e-e-e-e-e-e-
--b-b-b-b-b-b-b-b-b-b-b- >> B T S1 T CT R1 R << -b-b-b-b-b-b-b-b-b-b-b-
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T CT Rn R << -b-b-b-b-b-b-b-b-b-b-b-
 Log_name	Pos	Event_type	Server_id	End_log_pos	Info
 master-bin.000001	#	Query	#	#	BEGIN
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 2)
-master-bin.000001	#	Query	#	#	SAVEPOINT s1
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
 master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (353, 5)
 master-bin.000001	#	Query	#	#	use `test`; CREATE TEMPORARY TABLE tt_xx_12 (a int) engine=Innodb
-master-bin.000001	#	Query	#	#	ROLLBACK TO s1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
 master-bin.000001	#	Query	#	#	ROLLBACK
--e-e-e-e-e-e-e-e-e-e-e- >> B T S1 T CT R1 R << -e-e-e-e-e-e-e-e-e-e-e-
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T CT Rn R << -e-e-e-e-e-e-e-e-e-e-e-
 
 -b-b-b-b-b-b-b-b-b-b-b- >> drop-CT << -b-b-b-b-b-b-b-b-b-b-b-
 DROP TEMPORARY TABLE IF EXISTS tt_xx_12;

=== added file 'mysql-test/suite/rpl/r/rpl_stm_savepoints.result'
--- a/mysql-test/suite/rpl/r/rpl_stm_savepoints.result	1970-01-01 00:00:00 +0000
+++ b/mysql-test/suite/rpl/r/rpl_stm_savepoints.result	2010-07-14 17:36:36 +0000
@@ -0,0 +1,1954 @@
+stop slave;
+drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
+reset master;
+reset slave;
+drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
+start slave;
+#########################################################################
+#                            CONFIGURATION
+#########################################################################
+call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
+SET @verbose= 'N';
+SET @commands= 'configure';
+SET SQL_LOG_BIN=0;
+CREATE TABLE nt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE tt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+SET SQL_LOG_BIN=1;
+SET SQL_LOG_BIN=0;
+CREATE TABLE nt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE nt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = MyISAM;
+CREATE TABLE tt_1 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_2 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_3 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_4 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_5 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+CREATE TABLE tt_6 (trans_id INT, stmt_id INT, info VARCHAR(64), PRIMARY KEY(trans_id, stmt_id)) ENGINE = Innodb;
+SET SQL_LOG_BIN=1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_2(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_3(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_4(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_5(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO nt_6(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_1(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_2(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_3(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_4(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_5(trans_id, stmt_id) VALUES(1,1);
+INSERT INTO tt_6(trans_id, stmt_id) VALUES(1,1);
+CREATE PROCEDURE pc_i_tt_5_suc (IN p_trans_id INTEGER, IN p_stmt_id INTEGER)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+END|
+CREATE PROCEDURE pc_i_nt_5_suc (IN p_trans_id INTEGER, IN p_stmt_id INTEGER)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+END|
+CREATE FUNCTION fc_i_tt_5_suc (p_trans_id INTEGER, p_stmt_id INTEGER) RETURNS VARCHAR(64)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO tt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+RETURN "fc_i_tt_5_suc";
+END|
+CREATE FUNCTION fc_i_nt_5_suc (p_trans_id INTEGER, p_stmt_id INTEGER) RETURNS VARCHAR(64)
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_5 WHERE trans_id= p_trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, p_stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id);
+INSERT INTO nt_5(trans_id, stmt_id) VALUES (p_trans_id, in_stmt_id + 1);
+RETURN "fc_i_nt_5_suc";
+END|
+CREATE TRIGGER tr_i_tt_3_to_nt_3 AFTER INSERT ON tt_3 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_3 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_3(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO nt_3(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+CREATE TRIGGER tr_i_nt_4_to_tt_4 AFTER INSERT ON nt_4 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_4 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id), 1) INTO in_stmt_id;
+INSERT INTO tt_4(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO tt_4(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+CREATE TRIGGER tr_i_tt_5_to_tt_6 AFTER INSERT ON tt_5 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM tt_6 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id, 1), 1) INTO in_stmt_id;
+INSERT INTO tt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO tt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+CREATE TRIGGER tr_i_nt_5_to_nt_6 AFTER INSERT ON nt_5 FOR EACH ROW
+BEGIN
+DECLARE in_stmt_id INTEGER;
+SELECT max(stmt_id) INTO in_stmt_id FROM nt_6 WHERE trans_id= NEW.trans_id;
+SELECT COALESCE(greatest(in_stmt_id + 1, NEW.stmt_id), 1) INTO in_stmt_id;
+INSERT INTO nt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id);
+INSERT INTO nt_6(trans_id, stmt_id) VALUES (NEW.trans_id, in_stmt_id + 1);
+END|
+SET @commands= '';
+SET @commands= 'B T Sn N Cn C';
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (7, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (7, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (7, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (7, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (8, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (8, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (8, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (8, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (9, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (9, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (9, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (9, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (10, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (10, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (10, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (10, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (11, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (11, 5);
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (11, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (11, 5)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (12, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (12, 5);
+ROLLBACK TO S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (12, 2)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (13, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (13, 5);
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (14, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (14, 5);
+ROLLBACK TO S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (15, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 15 --> 5", tt_3.info= "new text 15 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement accesses nontransactional table as well as transactional or temporary table, and writes to any of them.
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (15, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; UPDATE nt_3, tt_3 SET nt_3.info= "new text 15 --> 5", tt_3.info= "new text 15 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (16, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 16 --> 5", tt_3.info= "new text 16 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement accesses nontransactional table as well as transactional or temporary table, and writes to any of them.
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (16, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; UPDATE nt_3, tt_3 SET nt_3.info= "new text 16 --> 5", tt_3.info= "new text 16 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (17, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 17 --> 5", tt_3.info= "new text 17 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement accesses nontransactional table as well as transactional or temporary table, and writes to any of them.
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (17, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; UPDATE nt_3, tt_3 SET nt_3.info= "new text 17 --> 5", tt_3.info= "new text 17 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (18, 2);
+SAVEPOINT S_0;
+UPDATE nt_3, tt_3 SET nt_3.info= "new text 18 --> 5", tt_3.info= "new text 18 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1;
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement accesses nontransactional table as well as transactional or temporary table, and writes to any of them.
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn NT Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (18, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; UPDATE nt_3, tt_3 SET nt_3.info= "new text 18 --> 5", tt_3.info= "new text 18 --> 5" where nt_3.trans_id = tt_3.trans_id and tt_3.trans_id = 1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn NT Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (19, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (19, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (19, 7);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (19, 7)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (19, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (19, 5)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (20, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (20, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (20, 7);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (20, 7)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (20, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (20, 5)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (21, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (21, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (21, 7);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (21, 7)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (21, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (21, 5)
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (22, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (22, 5);
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (22, 7);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T N Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (22, 7)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (22, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (22, 5)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T N Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (23, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (23, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (23, 8);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (23, 8)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (23, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (23, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (24, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (24, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (24, 8);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (24, 8)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (24, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (24, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (25, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (25, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (25, 8);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (25, 8)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (25, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (25, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (26, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (26, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (26, 8);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (26, 8)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (26, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (26, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (27, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (27, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (27, 8);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (27, 8)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (27, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (27, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (28, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (28, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (28, 8);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (28, 8)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (28, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (28, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (29, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (29, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (29, 8);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (29, 8)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (29, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (29, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (30, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (30, 5);
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (30, 8);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T Sn N Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (30, 8)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (30, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (30, 5)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T Sn N Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (31, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (31, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (31, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (31, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (31, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (31, 8)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (32, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (32, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (32, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (32, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (32, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (32, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (33, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (33, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (33, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (33, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (33, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (33, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (34, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (34, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (34, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (34, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (34, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (34, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (35, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (35, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (35, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (35, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (35, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (35, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (36, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (36, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (36, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (36, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (36, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (36, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (37, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (37, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (37, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (37, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (37, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (37, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (38, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (38, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (38, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N Sn T Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (38, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (38, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (38, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N Sn T Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (39, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (39, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (39, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (39, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (39, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (39, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (40, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (40, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (40, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (40, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (40, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (40, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (41, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (41, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (41, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (41, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (41, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (41, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (42, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (42, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (42, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (42, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (42, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (42, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (43, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (43, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (43, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (43, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (43, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (43, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (44, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (44, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (44, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (44, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (44, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (44, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (45, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (45, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (45, 7);
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (45, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (45, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (45, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (46, 2);
+SAVEPOINT S_0;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (46, 5);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (46, 7);
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn N T Sn Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (46, 5)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (46, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (46, 7)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn N T Sn Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (47, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (47, 6);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (47, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (47, 6)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (47, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (47, 8)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (48, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (48, 6);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (48, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (48, 6)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (48, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (48, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (49, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (49, 6);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (49, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (49, 6)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (49, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (49, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (50, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (50, 6);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (50, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (50, 6)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (50, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (50, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (51, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (51, 6);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (51, 8);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (51, 6)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (51, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (51, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (52, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (52, 6);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (52, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (52, 6)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (52, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (52, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (53, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (53, 6);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (53, 8);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (53, 6)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (53, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (53, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (54, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO nt_1(trans_id, stmt_id) VALUES (54, 6);
+Warnings:
+Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (54, 8);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn N T Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO nt_1(trans_id, stmt_id) VALUES (54, 6)
+master-bin.000001	#	Query	#	#	COMMIT
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (54, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (54, 8)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn N T Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (55, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (55, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (55, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (55, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (56, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (56, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_2;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (56, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (56, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_2
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (57, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (57, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_3;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (57, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (57, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_3
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (58, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (58, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_4;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (58, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (58, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_4
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (59, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_5;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (59, 7);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (59, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_5
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (59, 7)
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (60, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_6;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (60, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (60, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_6
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (60, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (61, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_7;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (61, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (61, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_7
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (61, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (62, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_8;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (62, 7);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (62, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_8
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (62, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (63, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_9;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (63, 7);
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (63, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_9
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (63, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (64, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_10;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (64, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (64, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_10
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (64, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (65, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_11;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (65, 7);
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (65, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_11
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (65, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (66, 2);
+SAVEPOINT S_0;
+DROP TEMPORARY TABLE IF EXISTS tt_xx_12;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (66, 7);
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn TEMP-N Sn T Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (66, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_12
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (66, 7)
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn TEMP-N Sn T Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (67, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (67, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_13;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (67, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (67, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_13
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (68, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (68, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_14;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (68, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (68, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_14
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (69, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (69, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_15;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (69, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (69, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_15
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (70, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (70, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_16;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (70, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (70, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_16
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (71, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (71, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_17;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (71, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (71, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_17
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (72, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (72, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_18;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (72, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (72, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_18
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (73, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (73, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_19;
+SAVEPOINT S_1;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (73, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (73, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_19
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (74, 2);
+SAVEPOINT S_0;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (74, 5);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_20;
+SAVEPOINT S_1;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn T TEMP-N Sn Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (74, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (74, 5)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_20
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn T TEMP-N Sn Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (75, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (75, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_21;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (75, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (75, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_21
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (76, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (76, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_22;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (76, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (76, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_22
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (77, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (77, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_23;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Cn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (77, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (77, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_23
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Cn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (78, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (78, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_24;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+COMMIT;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Rn C << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (78, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (78, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_24
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Xid	#	#	COMMIT /* XID */
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Rn C << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (79, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (79, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_25;
+RELEASE SAVEPOINT S_1;
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (79, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (79, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_25
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (80, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (80, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_26;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (80, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (80, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_26
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (81, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (81, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_27;
+ROLLBACK TO S_1;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+RELEASE SAVEPOINT S_0;
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Rn Cn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (81, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (81, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_27
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_1
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Rn Cn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+BEGIN;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (82, 2);
+SAVEPOINT S_0;
+SAVEPOINT S_1;
+INSERT INTO tt_1(trans_id, stmt_id) VALUES (82, 6);
+DROP TEMPORARY TABLE IF EXISTS tt_xx_28;
+RELEASE SAVEPOINT S_1;
+ROLLBACK TO S_0;
+Warnings:
+Warning	1196	Some non-transactional changed tables couldn't be rolled back
+ROLLBACK;
+-b-b-b-b-b-b-b-b-b-b-b- >> B T Sn Sn T TEMP-N Cn Rn R << -b-b-b-b-b-b-b-b-b-b-b-
+Log_name	Pos	Event_type	Server_id	End_log_pos	Info
+master-bin.000001	#	Query	#	#	BEGIN
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (82, 2)
+master-bin.000001	#	Query	#	#	SAVEPOINT S_0
+master-bin.000001	#	Query	#	#	SAVEPOINT S_1
+master-bin.000001	#	Query	#	#	use `test`; INSERT INTO tt_1(trans_id, stmt_id) VALUES (82, 6)
+master-bin.000001	#	Query	#	#	use `test`; DROP TEMPORARY TABLE IF EXISTS tt_xx_28
+master-bin.000001	#	Query	#	#	ROLLBACK TO S_0
+master-bin.000001	#	Query	#	#	ROLLBACK
+-e-e-e-e-e-e-e-e-e-e-e- >> B T Sn Sn T TEMP-N Cn Rn R << -e-e-e-e-e-e-e-e-e-e-e-
+
+###################################################################################
+#                               CHECK CONSISTENCY
+###################################################################################
+#########################################################################
+#                           CLEAN
+#########################################################################

=== added file 'mysql-test/suite/rpl/t/rpl_mixed_savepoints.test'
--- a/mysql-test/suite/rpl/t/rpl_mixed_savepoints.test	1970-01-01 00:00:00 +0000
+++ b/mysql-test/suite/rpl/t/rpl_mixed_savepoints.test	2010-07-14 17:36:36 +0000
@@ -0,0 +1,6 @@
+--source include/have_binlog_format_mixed.inc
+--source include/master-slave.inc
+--source include/have_innodb.inc
+
+let $engine_type=Innodb;
+--source extra/rpl_tests/rpl_savepoints.test

=== added file 'mysql-test/suite/rpl/t/rpl_row_savepoints.test'
--- a/mysql-test/suite/rpl/t/rpl_row_savepoints.test	1970-01-01 00:00:00 +0000
+++ b/mysql-test/suite/rpl/t/rpl_row_savepoints.test	2010-07-14 17:36:36 +0000
@@ -0,0 +1,6 @@
+--source include/have_binlog_format_row.inc
+--source include/master-slave.inc
+--source include/have_innodb.inc
+
+let $engine_type=Innodb;
+--source extra/rpl_tests/rpl_savepoints.test

=== added file 'mysql-test/suite/rpl/t/rpl_stm_savepoints.test'
--- a/mysql-test/suite/rpl/t/rpl_stm_savepoints.test	1970-01-01 00:00:00 +0000
+++ b/mysql-test/suite/rpl/t/rpl_stm_savepoints.test	2010-07-14 17:36:36 +0000
@@ -0,0 +1,6 @@
+--source include/have_binlog_format_statement.inc
+--source include/master-slave.inc
+--source include/have_innodb.inc
+
+let $engine_type=Innodb;
+--source extra/rpl_tests/rpl_savepoints.test


Attachment: [text/bzr-bundle]
Thread
bzr commit into mysql-next-mr-rpl-merge branch (alfranio.correia:3007)WL#5485Alfranio Correia14 Jul