mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +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:
@ -5661,7 +5661,7 @@ inline bool Row_definition_list::eq_name(const Spvar_definition *def,
|
||||
class Create_field :public Column_definition
|
||||
{
|
||||
public:
|
||||
LEX_CSTRING change; // If done with alter table
|
||||
LEX_CSTRING change; // Old column name if column is renamed by ALTER
|
||||
LEX_CSTRING after; // Put column after this one
|
||||
Field *field; // For alter table
|
||||
const TYPELIB *save_interval; // Temporary copy for the above
|
||||
|
Reference in New Issue
Block a user