Commit 80164ae9 authored by Davi Arnaut's avatar Davi Arnaut

Move test case. Embedded server does not support privilege

related bits.
parent 63817720
...@@ -3845,16 +3845,6 @@ ALTER TABLE v1; ...@@ -3845,16 +3845,6 @@ ALTER TABLE v1;
DROP VIEW v1; DROP VIEW v1;
DROP TABLE t1; DROP TABLE t1;
# #
# Bug#47734: Assertion failed: ! is_set() when locking a view with non-existing definer
#
DROP VIEW IF EXISTS v1;
CREATE DEFINER=`unknown`@`unknown` SQL SECURITY DEFINER VIEW v1 AS SELECT 1;
Warnings:
Note 1449 The user specified as a definer ('unknown'@'unknown') does not exist
LOCK TABLES v1 READ;
ERROR HY000: The user specified as a definer ('unknown'@'unknown') does not exist
DROP VIEW v1;
#
# Bug#48449: hang on show create view after upgrading when # Bug#48449: hang on show create view after upgrading when
# view contains function of view # view contains function of view
# #
......
...@@ -1237,3 +1237,14 @@ SELECT a FROM v2; ...@@ -1237,3 +1237,14 @@ SELECT a FROM v2;
a a
DROP USER mysqluser1; DROP USER mysqluser1;
DROP DATABASE mysqltest1; DROP DATABASE mysqltest1;
USE test;
#
# Bug#47734: Assertion failed: ! is_set() when locking a view with non-existing definer
#
DROP VIEW IF EXISTS v1;
CREATE DEFINER=`unknown`@`unknown` SQL SECURITY DEFINER VIEW v1 AS SELECT 1;
Warnings:
Note 1449 The user specified as a definer ('unknown'@'unknown') does not exist
LOCK TABLES v1 READ;
ERROR HY000: The user specified as a definer ('unknown'@'unknown') does not exist
DROP VIEW v1;
...@@ -3869,19 +3869,6 @@ ALTER TABLE v1; ...@@ -3869,19 +3869,6 @@ ALTER TABLE v1;
DROP VIEW v1; DROP VIEW v1;
DROP TABLE t1; DROP TABLE t1;
--echo #
--echo # Bug#47734: Assertion failed: ! is_set() when locking a view with non-existing definer
--echo #
--disable_warnings
DROP VIEW IF EXISTS v1;
--enable_warnings
CREATE DEFINER=`unknown`@`unknown` SQL SECURITY DEFINER VIEW v1 AS SELECT 1;
--error ER_NO_SUCH_USER
LOCK TABLES v1 READ;
DROP VIEW v1;
--echo # --echo #
--echo # Bug#48449: hang on show create view after upgrading when --echo # Bug#48449: hang on show create view after upgrading when
--echo # view contains function of view --echo # view contains function of view
......
...@@ -1532,3 +1532,17 @@ SELECT a FROM v2; ...@@ -1532,3 +1532,17 @@ SELECT a FROM v2;
--disconnect mysqluser1 --disconnect mysqluser1
DROP USER mysqluser1; DROP USER mysqluser1;
DROP DATABASE mysqltest1; DROP DATABASE mysqltest1;
USE test;
--echo #
--echo # Bug#47734: Assertion failed: ! is_set() when locking a view with non-existing definer
--echo #
--disable_warnings
DROP VIEW IF EXISTS v1;
--enable_warnings
CREATE DEFINER=`unknown`@`unknown` SQL SECURITY DEFINER VIEW v1 AS SELECT 1;
--error ER_NO_SUCH_USER
LOCK TABLES v1 READ;
DROP VIEW v1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment