mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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()
This commit is contained in:
@ -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'
|
||||
|
@ -405,3 +405,8 @@ SHOW OPEN TABLES;
|
||||
DROP TABLE txt1;
|
||||
DROP TABLE tyt2;
|
||||
DROP TABLE urkunde;
|
||||
#
|
||||
# BUG #12591 (SHOW TABLES FROM dbname produces wrong error message)
|
||||
#
|
||||
--error 1049
|
||||
SHOW TABLES FROM non_existing_database;
|
||||
|
Reference in New Issue
Block a user