mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
cleanup: unused function argument
This commit is contained in:
@@ -283,8 +283,7 @@ check_rename(THD *thd, rename_param *param,
|
||||
DBUG_ASSERT(param->new_alias.str);
|
||||
|
||||
if (!ha_table_exists(thd, &ren_table->db, ¶m->old_alias,
|
||||
¶m->old_version, NULL,
|
||||
¶m->from_table_hton) ||
|
||||
¶m->old_version, ¶m->from_table_hton) ||
|
||||
!param->from_table_hton)
|
||||
{
|
||||
my_error(ER_NO_SUCH_TABLE, MYF(if_exists ? ME_NOTE : 0),
|
||||
@@ -304,7 +303,7 @@ check_rename(THD *thd, rename_param *param,
|
||||
DBUG_RETURN(-1);
|
||||
}
|
||||
|
||||
if (ha_table_exists(thd, &new_db, ¶m->new_alias, NULL, NULL, 0))
|
||||
if (ha_table_exists(thd, &new_db, ¶m->new_alias))
|
||||
{
|
||||
my_error(ER_TABLE_EXISTS_ERROR, MYF(0), param->new_alias.str);
|
||||
DBUG_RETURN(1); // This can't be skipped
|
||||
|
Reference in New Issue
Block a user