mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-28576 RENAME COLUMN with NOCOPY algorithm leads to corrupt partitioned table
10.5 part: test cases and comments.
The code is in the merge commit 74fe1c44aa
When f.ex. table is partitioned by HASH(a) and we rename column `a' to
`b' partitioning filter stays unchanged: HASH(a). That's the wrong
behavior.
The patch updates partitioning filter in accordance to the new columns
names. That includes partition/subpartition expression and
partition/subpartition field list.
This commit is contained in:
@ -4801,6 +4801,7 @@ static void check_datadir_altered_for_innodb(THD *thd,
|
||||
@param[out] partition_changed Boolean indicating whether partition changed
|
||||
@param[out] fast_alter_table Boolean indicating if fast partition alter is
|
||||
possible.
|
||||
@param[out] thd->work_part_info Prepared part_info for the new table
|
||||
|
||||
@return Operation status
|
||||
@retval TRUE Error
|
||||
|
Reference in New Issue
Block a user