Commit a6087e7d authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-5309 - RENAME TABLE does not check for existence of the table's engine

fix the test case for ps-protocol
parent 5a4c5fa2
...@@ -327,6 +327,9 @@ plugin_name ...@@ -327,6 +327,9 @@ plugin_name
# #
INSTALL PLUGIN example SONAME 'ha_example'; INSTALL PLUGIN example SONAME 'ha_example';
CREATE TABLE t1(a INT) ENGINE=EXAMPLE; CREATE TABLE t1(a INT) ENGINE=EXAMPLE;
SELECT * FROM t1;
a
FLUSH TABLES;
UNINSTALL PLUGIN example; UNINSTALL PLUGIN example;
RENAME TABLE t1 TO t2; RENAME TABLE t1 TO t2;
ERROR 42S02: Table 'test.t1' doesn't exist ERROR 42S02: Table 'test.t1' doesn't exist
......
...@@ -259,6 +259,8 @@ select plugin_name from information_schema.plugins where plugin_library like 'ha ...@@ -259,6 +259,8 @@ select plugin_name from information_schema.plugins where plugin_library like 'ha
--echo # --echo #
INSTALL PLUGIN example SONAME 'ha_example'; INSTALL PLUGIN example SONAME 'ha_example';
CREATE TABLE t1(a INT) ENGINE=EXAMPLE; CREATE TABLE t1(a INT) ENGINE=EXAMPLE;
SELECT * FROM t1;
FLUSH TABLES;
UNINSTALL PLUGIN example; UNINSTALL PLUGIN example;
--error ER_NO_SUCH_TABLE --error ER_NO_SUCH_TABLE
RENAME TABLE t1 TO t2; RENAME TABLE t1 TO t2;
......
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