summaryrefslogtreecommitdiff
path: root/mysql-test/t/mix_innodb_myisam_binlog.test
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-11-17 13:37:30 -0800
committerunknown <jimw@mysql.com>2005-11-17 13:37:30 -0800
commit016fe413b44bc07d0ebb7adc14bf0c509885e673 (patch)
tree0469b3757df7cbb4eec77b1666376cc27926bcff /mysql-test/t/mix_innodb_myisam_binlog.test
parent57ad6b20ed8b22b010af1c354b23591570f12b09 (diff)
parent421dadf74fd436b10b6bad46d8f370748a4d318b (diff)
downloadmariadb-git-016fe413b44bc07d0ebb7adc14bf0c509885e673.tar.gz
Merge mysql.com:/home/jimw/my/mysql-4.1-clean
into mysql.com:/home/jimw/my/mysql-5.0-clean client/mysql.cc: Auto merged configure.in: Auto merged mysql-test/t/mix_innodb_myisam_binlog.test: Auto merged mysql-test/r/mix_innodb_myisam_binlog.result: Resolve conflict sql/item_func.cc: Resolve conflict sql/sql_show.cc: Resolve conflicts
Diffstat (limited to 'mysql-test/t/mix_innodb_myisam_binlog.test')
-rw-r--r--mysql-test/t/mix_innodb_myisam_binlog.test30
1 files changed, 29 insertions, 1 deletions
diff --git a/mysql-test/t/mix_innodb_myisam_binlog.test b/mysql-test/t/mix_innodb_myisam_binlog.test
index 2e804f4c986..add4bd7b572 100644
--- a/mysql-test/t/mix_innodb_myisam_binlog.test
+++ b/mysql-test/t/mix_innodb_myisam_binlog.test
@@ -227,7 +227,35 @@ select (@after:=unix_timestamp())*0; # always give repeatable output
# the bug, the reap would return immediately after the insert into t2.
select (@after-@before) >= 2;
-# cleanup
drop table t1,t2;
+commit;
+
+# test for BUG#7947 - DO RELEASE_LOCK() not written to binlog on rollback in the middle
+# of a transaction
+
+connection con2;
+begin;
+create temporary table ti (a int) engine=innodb;
+rollback;
+insert into ti values(1);
+set autocommit=0;
+create temporary table t1 (a int) engine=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 con2;
+connection con3;
+select get_lock("lock1",60);
+show binlog events from 79;
+do release_lock("lock1");
+drop table t0,t2;
+
# End of 4.1 tests