summaryrefslogtreecommitdiff
path: root/mysql-test/t/drop_debug.test
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2009-10-22 23:32:12 +0400
committerAlexander Nozdrin <alik@sun.com>2009-10-22 23:32:12 +0400
commitf3d58bae2011dc043d75268a98e65731da622603 (patch)
treee54848c0673067be83d91908e11c4e470883e2f9 /mysql-test/t/drop_debug.test
parentf8ec90270ba43cf62d685fd2a4c747a0bb4a669b (diff)
downloadmariadb-git-f3d58bae2011dc043d75268a98e65731da622603.tar.gz
Adding forgotten files for test case for Bug#43138.
Diffstat (limited to 'mysql-test/t/drop_debug.test')
-rw-r--r--mysql-test/t/drop_debug.test37
1 files changed, 37 insertions, 0 deletions
diff --git a/mysql-test/t/drop_debug.test b/mysql-test/t/drop_debug.test
new file mode 100644
index 00000000000..3e29d0f1308
--- /dev/null
+++ b/mysql-test/t/drop_debug.test
@@ -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 # --
+
+###########################################################################