Commit 16a1120d authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi
Browse files

ha_innobase.cc Improved error message in the case the .frm file exists but...

ha_innobase.cc	Improved error message in the case the .frm file exists but InnoDB data dictionary does not conatin the table
parent f63d3251
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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;