mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Record in test suite that temporary tables only uses write locks
This commit is contained in:
@ -619,3 +619,15 @@ ERROR 42S02: Unknown table 'test.t2'
|
|||||||
#
|
#
|
||||||
# End of 10.5 tests
|
# End of 10.5 tests
|
||||||
#
|
#
|
||||||
|
#
|
||||||
|
# Record that temporary table locks are always WRITE locks
|
||||||
|
#
|
||||||
|
CREATE TEMPORARY TABLE t1 (a INT);
|
||||||
|
LOCK TABLE t1 READ;
|
||||||
|
TRUNCATE TABLE t1;
|
||||||
|
TRUNCATE TABLE t1;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
DROP TABLE t1;
|
||||||
|
#
|
||||||
|
# End of 10.6 tests
|
||||||
|
#
|
||||||
|
@ -681,3 +681,17 @@ drop temporary table t2;
|
|||||||
--echo # End of 10.5 tests
|
--echo # End of 10.5 tests
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # Record that temporary table locks are always WRITE locks
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
CREATE TEMPORARY TABLE t1 (a INT);
|
||||||
|
LOCK TABLE t1 READ;
|
||||||
|
TRUNCATE TABLE t1;
|
||||||
|
TRUNCATE TABLE t1;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # End of 10.6 tests
|
||||||
|
--echo #
|
||||||
|
Reference in New Issue
Block a user