mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.1 into 10.2
This commit is contained in:
@ -395,15 +395,17 @@ DROP VIEW IF EXISTS v1;
|
||||
#
|
||||
# Test 1: LOCK TABLES v1 WRITE, t1 READ;
|
||||
#
|
||||
# Thanks to the fact that we no longer allow DDL on tables
|
||||
# which are locked for write implicitly, the exact scenario
|
||||
# in which assert was failing is no longer repeatable.
|
||||
CREATE TABLE t1 ( f1 integer );
|
||||
CREATE VIEW v1 AS SELECT f1 FROM t1 ;
|
||||
# Connection 2
|
||||
connect con2,localhost,root;
|
||||
LOCK TABLES v1 WRITE, t1 READ;
|
||||
FLUSH TABLE t1;
|
||||
ERROR HY000: Table 't1' was locked with a READ lock and can't be updated
|
||||
UNLOCK TABLES;
|
||||
disconnect con2;
|
||||
# Connection 1
|
||||
connection default;
|
||||
LOCK TABLES t1 WRITE;
|
||||
FLUSH TABLE t1;
|
||||
DROP TABLE t1;
|
||||
DROP VIEW v1;
|
||||
#
|
||||
|
Reference in New Issue
Block a user