mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-27605 ALTER .. ADD PARTITION uses wrong partition-level option values
When a partition with engine-defined partition options is added by ALTER, it shows the correct definition in SHOW CREATE, but the actual values get inherited from the previous partition. The cause of the bug is that the server did not parse the options associated with the newly added partition. In the case of ALTER, the complete part_info, which represents the partition structure after ALTER, is built by prep_alter_part_table(). So, we need to parse engine-defined partition options after the call of the function.
This commit is contained in:
@ -10318,6 +10318,8 @@ do_continue:;
|
||||
{
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
if (parse_engine_part_options(thd, table))
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user