1
CREATE TABLE CONNECTION_ID (id int);
2
CREATE TABLE t1_680028 (a serial);
3
insert into CONNECTION_ID VALUES (CONNECTION_ID());
4
EXECUTE "SELECT @id:=id FROM CONNECTION_ID LIMIT 1" WITH NO RETURN;
5
FLUSH TABLES WITH READ LOCK;
6
select * from t1_680028 for update;
8
SELECT GLOBAL_READ_LOCK();
10
HAS GLOBAL READ LOCK WITH BLOCKING COMMIT
12
SELECT GLOBAL_READ_LOCK();
16
DROP TABLE CONNECTION_ID;