summaryrefslogtreecommitdiff
path: root/mysql-test/r/binlog.result
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2005-02-23 14:55:16 +0100
committerunknown <serg@serg.mylan>2005-02-23 14:55:16 +0100
commit0cd185ea6a54ca2c8980b6c18371ed365d53f07c (patch)
tree553f259ed15c24faef8d9820ec14c75113487e6c /mysql-test/r/binlog.result
parent7d4ea5cfc2c9288f9f3d75e4477f85db86e90313 (diff)
downloadmariadb-git-0cd185ea6a54ca2c8980b6c18371ed365d53f07c.tar.gz
write "COMMIT" into binlog if there's no Xid at the end of transaction
new tests mysql-test/r/innodb.result: savepoint test mysql-test/t/innodb.test: savepoint test sql/log.cc: write "COMMIT" into binlog if there's no Xid at the end of transaction
Diffstat (limited to 'mysql-test/r/binlog.result')
-rw-r--r--mysql-test/r/binlog.result22
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/r/binlog.result b/mysql-test/r/binlog.result
new file mode 100644
index 00000000000..c49b764ed8d
--- /dev/null
+++ b/mysql-test/r/binlog.result
@@ -0,0 +1,22 @@
+drop table if exists t1, t2;
+create table t1 (a int) engine=bdb;
+create table t2 (a int) engine=innodb;
+begin;
+insert t1 values (5);
+commit;
+begin;
+insert t2 values (5);
+commit;
+show binlog events from 96;
+Log_name Pos Event_type Server_id End_log_pos Info
+master-bin.000001 96 Query 1 187 use `test`; drop table if exists t1, t2
+master-bin.000001 187 Query 1 285 use `test`; create table t1 (a int) engine=bdb
+master-bin.000001 285 Query 1 386 use `test`; create table t2 (a int) engine=innodb
+master-bin.000001 386 Query 1 455 use `test`; BEGIN
+master-bin.000001 455 Query 1 84 use `test`; insert t1 values (5)
+master-bin.000001 539 Query 1 154 use `test`; COMMIT
+master-bin.000001 609 Query 1 678 use `test`; BEGIN
+master-bin.000001 678 Query 1 84 use `test`; insert t2 values (5)
+master-bin.000001 762 Xid 1 111 COMMIT /* xid=10 */
+reset master;
+drop table t1,t2;