1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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

This commit is contained in:
ramil@mysql.com
2006-04-25 15:27:28 +05:00
parent e75a62aeae
commit 815da9ccee

View File

@ -1654,7 +1654,9 @@ mysql_rename_table(enum db_type base,
}
}
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);
DBUG_RETURN(error != 0);
}