mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
Adding forgotten files for test case for Bug#43138.
This commit is contained in:
parent
9d7d67d436
commit
40c0ae8129
2 changed files with 62 additions and 0 deletions
25
mysql-test/r/drop_debug.result
Normal file
25
mysql-test/r/drop_debug.result
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
# --
|
||||
# -- Bug#43138: DROP DATABASE failure does not clean up message list.
|
||||
# --
|
||||
|
||||
DROP DATABASE IF EXISTS mysql_test;
|
||||
|
||||
CREATE DATABASE mysql_test;
|
||||
CREATE TABLE mysql_test.t1(a INT);
|
||||
CREATE TABLE mysql_test.t2(b INT);
|
||||
CREATE TABLE mysql_test.t3(c INT);
|
||||
|
||||
SET SESSION DEBUG = "+d,bug43138";
|
||||
|
||||
DROP DATABASE mysql_test;
|
||||
Warnings:
|
||||
Error 1051 Unknown table 't3'
|
||||
Error 1051 Unknown table 't2'
|
||||
Error 1051 Unknown table 't1'
|
||||
|
||||
SET SESSION DEBUG = "-d,bug43138";
|
||||
|
||||
# --
|
||||
# -- End of Bug#43138.
|
||||
# --
|
37
mysql-test/t/drop_debug.test
Normal file
37
mysql-test/t/drop_debug.test
Normal file
|
@ -0,0 +1,37 @@
|
|||
#
|
||||
# DROP-related tests which execution requires debug server.
|
||||
#
|
||||
--source include/have_debug.inc
|
||||
|
||||
###########################################################################
|
||||
--echo
|
||||
--echo # --
|
||||
--echo # -- Bug#43138: DROP DATABASE failure does not clean up message list.
|
||||
--echo # --
|
||||
--echo
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS mysql_test;
|
||||
--enable_warnings
|
||||
|
||||
--echo
|
||||
CREATE DATABASE mysql_test;
|
||||
CREATE TABLE mysql_test.t1(a INT);
|
||||
CREATE TABLE mysql_test.t2(b INT);
|
||||
CREATE TABLE mysql_test.t3(c INT);
|
||||
|
||||
--echo
|
||||
SET SESSION DEBUG = "+d,bug43138";
|
||||
|
||||
--echo
|
||||
DROP DATABASE mysql_test;
|
||||
|
||||
--echo
|
||||
SET SESSION DEBUG = "-d,bug43138";
|
||||
|
||||
--echo
|
||||
--echo # --
|
||||
--echo # -- End of Bug#43138.
|
||||
--echo # --
|
||||
|
||||
###########################################################################
|
Loading…
Reference in a new issue