mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
Merge 10.4 into 10.5
This commit is contained in:
commit
4b3c3e526e
36 changed files with 800 additions and 1191 deletions
|
|
@ -568,6 +568,14 @@ bool Sql_cmd_alter_table_exchange_partition::
|
|||
part_table= table_list->table;
|
||||
swap_table= swap_table_list->table;
|
||||
|
||||
/* Don't allow to exchange with a VIEW */
|
||||
if (unlikely(swap_table_list->view))
|
||||
{
|
||||
my_error(ER_WRONG_OBJECT, MYF(0), table_list->db.str,
|
||||
swap_table_list->table_name.str, "BASE TABLE");
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
||||
if (unlikely(check_exchange_partition(swap_table, part_table)))
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue