diff options
author | magnus@neptunus.(none) <> | 2004-09-13 14:46:38 +0200 |
---|---|---|
committer | magnus@neptunus.(none) <> | 2004-09-13 14:46:38 +0200 |
commit | 8abbb28f8b6f2b306c7dd2de7ac6693569d61f9e (patch) | |
tree | 8eed62b1151616d8bdb119967ec4713ddc6852b9 /sql/table.cc | |
parent | e6e83d29e1fb40a1cc9b3ada99313dfb16e39c0a (diff) | |
download | mariadb-git-8abbb28f8b6f2b306c7dd2de7ac6693569d61f9e.tar.gz |
WL1424 Multiple MySQL Servers: SHOW TABLES etc. should detect new and delete old tables.
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc index 8b018d61e5a..7b64ef7a48c 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -705,6 +705,14 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag, outparam->crashed=((err == HA_ERR_CRASHED_ON_USAGE) && outparam->file->auto_repair() && !(ha_open_flags & HA_OPEN_FOR_REPAIR)); + + if (err==HA_ERR_NO_SUCH_TABLE) + { + /* The table did not exists in storage engine, use same error message + as if the .frm file didn't exist */ + error= 1; + my_errno= ENOENT; + } goto err_not_open; /* purecov: inspected */ } } |