blob: 65ab3e86fde6a6ee8ee5f136cc99cc70687b1f16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
SET lock_wait_timeout = 1;
CREATE TABLE t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ;
SET lock_wait_timeout = 1;
LOCK TABLES t1 READ LOCAL;
UNLOCK TABLES;
UNLOCK TABLES;
LOCK TABLES t1 READ LOCAL;
LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ;
UNLOCK TABLES;
UNLOCK TABLES;
DROP TABLE t1;
|