diff options
author | unknown <heikki@donna.mysql.fi> | 2001-06-06 16:12:30 +0300 |
---|---|---|
committer | unknown <heikki@donna.mysql.fi> | 2001-06-06 16:12:30 +0300 |
commit | 5388d91592db38f4cee3e5c27b108e1f8da8716d (patch) | |
tree | 253670609b15a7cacf088fc681316d7566450420 /sql/ha_innobase.cc | |
parent | 124c535dc049521f7c0bac74c3165dc6ba0d6322 (diff) | |
download | mariadb-git-5388d91592db38f4cee3e5c27b108e1f8da8716d.tar.gz |
ha_innobase.cc Improved error message in the case the .frm file exists but InnoDB data dictionary does not conatin the table
sql/ha_innobase.cc:
Improved error message in the case the .frm file exists but InnoDB data dictionary does not conatin the table
Diffstat (limited to 'sql/ha_innobase.cc')
-rw-r--r-- | sql/ha_innobase.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/ha_innobase.cc b/sql/ha_innobase.cc index 4a69056a9e2..51ea5f40018 100644 --- a/sql/ha_innobase.cc +++ b/sql/ha_innobase.cc @@ -679,7 +679,7 @@ ha_innobase::bas_ext() const /* out: file extension strings, currently not used */ { - static const char* ext[] = {".not_used", NullS}; + static const char* ext[] = {".InnoDB_table_inside_tablespace", NullS}; return(ext); } @@ -779,6 +779,14 @@ ha_innobase::open( if (NULL == (ib_table = dict_table_get(norm_name, NULL))) { + fprintf(stderr, "InnoDB: Cannot find table %s from the internal\n" + "InnoDB: data dictionary of InnoDB though the .frm file\n" + "InnoDB: for the table exists. Maybe you have deleted\n" + "InnoDB: and created again an InnoDB database but\n" + "InnoDB: forgotten to delete the corresponding\n" + "InnoDB: .frm files of old InnoDB tables?\n", + norm_name); + free_share(share); my_free((char*) upd_buff, MYF(0)); my_errno = ENOENT; |