MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Alexander Nozdrin Date:August 24 2009 5:52pm
Subject:bzr commit into mysql-5.4 branch (alik:2874) Bug#37431
View as plain text  
#At file:///mnt/raid/alik/MySQL/bzr/bug37431/mysql-next-bugfixing-bug37431/ based on revid:dlenev@stripped

 2874 Alexander Nozdrin	2009-08-24
      A test case for Bug#37431 (DROP TABLE does not report errors correctly).

    modified:
      mysql-test/r/drop.result
      mysql-test/t/drop.test
=== modified file 'mysql-test/r/drop.result'
--- a/mysql-test/r/drop.result	2009-05-01 13:37:34 +0000
+++ b/mysql-test/r/drop.result	2009-08-24 17:52:09 +0000
@@ -141,3 +141,17 @@ Error	1146	Table 'mysql.proc' doesn't ex
 # --
 
 End of 5.1 tests
+
+# --
+# -- Bug#37431 (DROP TABLE does not report errors correctly).
+# --
+DROP TABLE IF EXISTS t1;
+DROP TABLE t1;
+ERROR 42S02: Unknown table 't1'
+SHOW WARNINGS;
+Level	Code	Message
+Error	1051	Unknown table 't1'
+
+# --
+# -- End of Bug#37431.
+# --

=== modified file 'mysql-test/t/drop.test'
--- a/mysql-test/t/drop.test	2009-05-25 10:10:18 +0000
+++ b/mysql-test/t/drop.test	2009-08-24 17:52:09 +0000
@@ -235,3 +235,24 @@ DROP DATABASE mysql_test;
 
 --echo
 --echo End of 5.1 tests
+
+###########################################################################
+
+--echo
+--echo # --
+--echo # -- Bug#37431 (DROP TABLE does not report errors correctly).
+--echo # --
+
+--disable_warnings
+DROP TABLE IF EXISTS t1;
+--enable_warnings
+
+--error ER_BAD_TABLE_ERROR
+DROP TABLE t1;
+
+SHOW WARNINGS;
+
+--echo
+--echo # --
+--echo # -- End of Bug#37431.
+--echo # --


Attachment: [text/bzr-bundle] bzr/alik@sun.com-20090824175209-hi2v13y7svh8i9ki.bundle
Thread
bzr commit into mysql-5.4 branch (alik:2874) Bug#37431Alexander Nozdrin24 Aug