mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-11126: Crash while altering persistent virtual column
Problem was that if old virtual column is computed and stored there was no check if new column is really virtual column.
This commit is contained in:
@@ -6274,6 +6274,7 @@ static bool fill_alter_inplace_info(THD *thd,
|
||||
(field->stored_in_db || field->vcol_info->is_in_partitioning_expr()))
|
||||
{
|
||||
if (is_equal == IS_EQUAL_NO ||
|
||||
!new_field->vcol_info ||
|
||||
!field->vcol_info->is_equal(new_field->vcol_info))
|
||||
ha_alter_info->handler_flags|= Alter_inplace_info::ALTER_COLUMN_VCOL;
|
||||
else
|
||||
|
Reference in New Issue
Block a user