mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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
This commit is contained in:
23
mysql-test/t/binlog.test
Normal file
23
mysql-test/t/binlog.test
Normal 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;
|
||||
|
Reference in New Issue
Block a user