List:Commits« Previous MessageNext Message »
From:Alexander Nozdrin Date:October 22 2009 7:32pm
Subject:bzr commit into mysql-5.5.0-next-mr-runtime branch (alik:2895)
Bug#43138
View as plain text  
#At file:///mnt/raid/alik/MySQL/bzr/backporting/mysql-next-mr-runtime/ based on revid:alik@stripped

 2895 Alexander Nozdrin	2009-10-22
      Adding forgotten files for test case for Bug#43138.

    added:
      mysql-test/r/drop_debug.result
      mysql-test/t/drop_debug.test
=== added file 'mysql-test/r/drop_debug.result'
--- a/mysql-test/r/drop_debug.result	1970-01-01 00:00:00 +0000
+++ b/mysql-test/r/drop_debug.result	2009-10-22 19:32:12 +0000
@@ -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.
+# --

=== added file 'mysql-test/t/drop_debug.test'
--- a/mysql-test/t/drop_debug.test	1970-01-01 00:00:00 +0000
+++ b/mysql-test/t/drop_debug.test	2009-10-22 19:32:12 +0000
@@ -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 # --
+
+###########################################################################


Attachment: [text/bzr-bundle] bzr/alik@sun.com-20091022193212-adlqhnwlyo33v3zp.bundle
Thread
bzr commit into mysql-5.5.0-next-mr-runtime branch (alik:2895)Bug#43138Alexander Nozdrin22 Oct