mirror of
https://github.com/MariaDB/server.git
synced 2025-11-15 09:02:33 +03:00
transaction while holding the lock. Also test to make sure other binlogging issues reported in the bug have been addressed. sql/item_func.cc: fix for BUG#7947 mysql-test/r/rpl_bug7947.result: New BitKeeper file ``mysql-test/r/rpl_bug7947.result'' mysql-test/t/rpl_bug7947.test: New BitKeeper file ``mysql-test/t/rpl_bug7947.test''
23 lines
644 B
Plaintext
23 lines
644 B
Plaintext
--source include/master-slave.inc
|
|
connection master;
|
|
begin;
|
|
create temporary table ti (a int) engine=innodb;
|
|
rollback;
|
|
insert into ti values(1);
|
|
set autocommit=0;
|
|
create temporary table t1 (a int) type=myisam; commit;
|
|
insert t1 values (1); rollback;
|
|
create table t0 (n int);
|
|
insert t0 select * from t1;
|
|
set autocommit=1;
|
|
insert into t0 select GET_LOCK("lock1",null);
|
|
set autocommit=0;
|
|
create table t2 (n int) engine=innodb;
|
|
insert into t2 values (3);
|
|
disconnect master;
|
|
connect (master,localhost,root,,test,$MASTER_MYPORT,master.sock);
|
|
select get_lock("lock1",null);
|
|
show binlog events from 79;
|
|
select release_lock("lock1");
|
|
drop table t0,t2;
|