summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-10-30 13:53:07 +0100
committerSergei Golubchik <serg@mariadb.org>2019-10-30 16:47:43 +0100
commitd6d621cec18251b55202bbd362315b3c1ed90181 (patch)
tree6902df73c11cb6741e2328aef1df89cfc2c92351 /sql/sql_table.cc
parent73c864b5d16aec710a1686a83fb7e92e080a2f30 (diff)
downloadmariadb-git-d6d621cec18251b55202bbd362315b3c1ed90181.tar.gz
MDEV-18819 ALTER_COLUMN_VCOL is not set for generated stored columns
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 8eb0b078bd1..bb22e9a9f34 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -6733,7 +6733,7 @@ static bool fill_alter_inplace_info(THD *thd, TABLE *table, bool varchar,
}
if (field->vcol_info->is_in_partitioning_expr() ||
- field->flags & PART_KEY_FLAG)
+ field->flags & PART_KEY_FLAG || field->stored_in_db())
{
if (value_changes)
ha_alter_info->handler_flags|= ALTER_COLUMN_VCOL;