1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

write "COMMIT" into binlog if there's no Xid at the end of transaction

new tests
This commit is contained in:
serg@serg.mylan
2005-02-23 14:55:16 +01:00
parent 41043bb3f5
commit da13ab086d
5 changed files with 72 additions and 9 deletions

23
mysql-test/t/binlog.test Normal file
View File

@@ -0,0 +1,23 @@
#
# misc binlogging tests that do not require a slave running
#
-- source include/have_bdb.inc
-- source include/have_innodb.inc
--disable_warnings
drop table if exists t1, t2;
--enable_warnings
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;
# first COMMIT must be Query_log_event, second - Xid_log_event
show binlog events from 96;
reset master;
drop table t1,t2;