| 1 |
SET lock_wait_timeout = 1; |
| 2 |
CREATE TABLE t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>; |
| 3 |
LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ; |
| 4 |
connect con1,localhost,root,,; |
| 5 |
SET lock_wait_timeout = 1; |
| 6 |
LOCK TABLES t1 READ LOCAL; |
| 7 |
UNLOCK TABLES; |
| 8 |
connection default; |
| 9 |
UNLOCK TABLES; |
| 10 |
connection con1; |
| 11 |
LOCK TABLES t1 READ LOCAL; |
| 12 |
connection default; |
| 13 |
LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ; |
| 14 |
UNLOCK TABLES; |
| 15 |
connection con1; |
| 16 |
UNLOCK TABLES; |
| 17 |
disconnect con1; |
| 18 |
connection default; |
| 19 |
DROP TABLE t1; |