mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-4879 - Merge test cases for new CREATE TEMPORARY TABLE privilege model
- merged test cases for MySQL bug#27480 - fixed that LOCK TABLES was unable to open temporary table (covered by grant2 test, merged appropriate code from 5.6) - commented lines that cause server crash in merge test, reported MDEV-5042 (not relevant to bug#27480)
This commit is contained in:
@@ -173,4 +173,21 @@ DROP VIEW v1;
|
||||
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # Test case which has failed on assertion after refactoring which was
|
||||
--echo # made as part of fix for bug #27480 "Extend CREATE TEMPORARY TABLES
|
||||
--echo # privilege to allow temp table operations".
|
||||
--echo #
|
||||
CREATE TEMPORARY TABLE t1 (id int);
|
||||
CREATE TABLE IF NOT EXISTS t2 LIKE t1;
|
||||
--echo # The below statement should succeed with warning and
|
||||
--echo # should not crash due to failing assertion.
|
||||
CREATE TABLE IF NOT EXISTS t2 LIKE t1;
|
||||
--echo # Clean-up.
|
||||
DROP TABLE t1, t2;
|
||||
sync_slave_with_master;
|
||||
connection master;
|
||||
|
||||
|
||||
--source include/rpl_end.inc
|
||||
|
Reference in New Issue
Block a user