1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for bug #799 FLUSH TABLES WITH READ LOCK does not block CREATE TABLE

This commit is related to my previos one(ChangeSet 1.1583 03/08/27 18:03:39).
Note about COMMIT&ROLLBACK:
  Only 'COMMIT' statement updates the binary log. 
  'ROLLBACK' statement doesn't update the binlog.
This commit is contained in:
gluh@gluh.mysql.r18.ru
2003-08-28 18:09:00 +05:00
parent 4c076ea6d7
commit e4951147cf
6 changed files with 39 additions and 23 deletions

View File

@ -133,6 +133,21 @@ select n from t1;
rollback;
drop table t1;
#
# Test for commit and FLUSH TABLES WITH READ LOCK
#
create table t1 (n int not null primary key) type=innodb;
start transaction;
insert into t1 values (4);
flush tables with read lock;
--error 1223;
commit;
unlock tables;
commit;
select * from t1;
drop table t1;
#
# Testing transactions
#