Commit 815da9cc authored by ramil@mysql.com's avatar ramil@mysql.com

Fix for bug #7643: ALTER TABLE fails for CSV, EXAMPLE, ARCHIVE engines

parent e75a62ae
...@@ -1654,7 +1654,9 @@ mysql_rename_table(enum db_type base, ...@@ -1654,7 +1654,9 @@ mysql_rename_table(enum db_type base,
} }
} }
delete file; delete file;
if (error) if (error == HA_ERR_WRONG_COMMAND)
my_error(ER_NOT_SUPPORTED_YET, MYF(0), "ALTER TABLE");
else if (error)
my_error(ER_ERROR_ON_RENAME, MYF(0), from, to, error); my_error(ER_ERROR_ON_RENAME, MYF(0), from, to, error);
DBUG_RETURN(error != 0); DBUG_RETURN(error != 0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment