mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
This commit is contained in:
@ -4431,8 +4431,14 @@ uint prep_alter_part_table(THD *thd, TABLE *table, Alter_info *alter_info,
|
||||
!thd->lex->part_info->num_columns)
|
||||
thd->lex->part_info->num_columns= 1; // to make correct clone
|
||||
|
||||
if ((thd->work_part_info= thd->lex->part_info) &&
|
||||
!(thd->work_part_info= thd->lex->part_info->get_clone(thd)))
|
||||
/*
|
||||
One of these is done in handle_if_exists_option():
|
||||
thd->work_part_info= thd->lex->part_info;
|
||||
or
|
||||
thd->work_part_info= NULL;
|
||||
*/
|
||||
if (thd->work_part_info &&
|
||||
!(thd->work_part_info= thd->work_part_info->get_clone(thd)))
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
/* ALTER_ADMIN_PARTITION is handled in mysql_admin_table */
|
||||
|
Reference in New Issue
Block a user