mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge 10.2 into 10.3
main.derived_cond_pushdown: Move all 10.3 tests to the end, trim trailing white space, and add an "End of 10.3 tests" marker. Add --sorted_result to tests where the ordering is not deterministic. main.win_percentile: Add --sorted_result to tests where the ordering is no longer deterministic.
This commit is contained in:
@ -734,17 +734,21 @@ DROP VIEW IF EXISTS v1;
|
||||
--echo #
|
||||
--echo # Test 1: LOCK TABLES v1 WRITE, t1 READ;
|
||||
--echo #
|
||||
--echo # Thanks to the fact that we no longer allow DDL on tables
|
||||
--echo # which are locked for write implicitly, the exact scenario
|
||||
--echo # in which assert was failing is no longer repeatable.
|
||||
|
||||
CREATE TABLE t1 ( f1 integer );
|
||||
CREATE VIEW v1 AS SELECT f1 FROM t1 ;
|
||||
|
||||
--echo # Connection 2
|
||||
connect (con2,localhost,root);
|
||||
LOCK TABLES v1 WRITE, t1 READ;
|
||||
--error ER_TABLE_NOT_LOCKED_FOR_WRITE
|
||||
FLUSH TABLE t1;
|
||||
UNLOCK TABLES;
|
||||
disconnect con2;
|
||||
--source include/wait_until_disconnected.inc
|
||||
|
||||
--echo # Connection 1
|
||||
connection default;
|
||||
LOCK TABLES t1 WRITE;
|
||||
FLUSH TABLE t1; # Assertion happened here
|
||||
|
||||
# Cleanup
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user