mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +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:
@ -114,4 +114,18 @@ Note 1050 Table 'v1' already exists
|
||||
include/show_binlog_events.inc
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1, t2;
|
||||
#
|
||||
# Test case which has failed on assertion after refactoring which was
|
||||
# made as part of fix for bug #27480 "Extend CREATE TEMPORARY TABLES
|
||||
# privilege to allow temp table operations".
|
||||
#
|
||||
CREATE TEMPORARY TABLE t1 (id int);
|
||||
CREATE TABLE IF NOT EXISTS t2 LIKE t1;
|
||||
# The below statement should succeed with warning and
|
||||
# should not crash due to failing assertion.
|
||||
CREATE TABLE IF NOT EXISTS t2 LIKE t1;
|
||||
Warnings:
|
||||
Note 1050 Table 't2' already exists
|
||||
# Clean-up.
|
||||
DROP TABLE t1, t2;
|
||||
include/rpl_end.inc
|
||||
|
Reference in New Issue
Block a user