diff options
author | Staale Smedseng <staale.smedseng@sun.com> | 2009-02-27 16:11:15 +0200 |
---|---|---|
committer | Staale Smedseng <staale.smedseng@sun.com> | 2009-02-27 16:11:15 +0200 |
commit | 97b68934bca29ab88f63d3887071248c0c602a82 (patch) | |
tree | 0889eb621b49a1317043d5853f7c7b4e474efbca /sql | |
parent | a6ac350b3aacb277a15b8c2b03da4af049556bec (diff) | |
download | mariadb-git-97b68934bca29ab88f63d3887071248c0c602a82.tar.gz |
Recommit for merging and pushing
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_table.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index eefe2a5596e..ff7f874ffcb 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -2314,7 +2314,12 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables, view_checksum(thd, table) == HA_ADMIN_WRONG_CHECKSUM) push_warning(thd, MYSQL_ERROR::WARN_LEVEL_ERROR, ER_VIEW_CHECKSUM, ER(ER_VIEW_CHECKSUM)); - result_code= HA_ADMIN_CORRUPT; + if (thd->net.last_errno == ER_NO_SUCH_TABLE) + /* A missing table is just issued as a failed command */ + result_code= HA_ADMIN_FAILED; + else + /* Default failure code is corrupt table */ + result_code= HA_ADMIN_CORRUPT; goto send_result; } |