From 7370b241a1bcd81fa24e793c30df5e09923e071a Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 17 Aug 2005 17:51:10 +0200 Subject: fix for bug #12591 (SHOW TABLES FROM dbname produces wrong error message) mysql-test/r/show_check.result: results for test for bug #12591 mysql-test/t/show_check.test: test for bug #12591 sql/sql_show.cc: don't let my_dir() emit a message bug catch the errno (my_errno - a thread specific variable) and check it for ENOENT - not existing. For other errors emulate the message used to be emitted by my_dir() --- mysql-test/r/show_check.result | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mysql-test/r/show_check.result') diff --git a/mysql-test/r/show_check.result b/mysql-test/r/show_check.result index 94d1ac7ac11..c143c7f0f29 100644 --- a/mysql-test/r/show_check.result +++ b/mysql-test/r/show_check.result @@ -555,3 +555,5 @@ Database Table In_use Name_locked DROP TABLE txt1; DROP TABLE tyt2; DROP TABLE urkunde; +SHOW TABLES FROM non_existing_database; +ERROR 42000: Unknown database 'non_existing_database' -- cgit v1.2.1