Commit 96d9f033 authored by Thirunarayanan Balathandayuthapani's avatar Thirunarayanan Balathandayuthapani Committed by Marko Mäkelä

MDEV-19602 Replace mysql_version check with frm_version for virtual columns inside InnoDB

- Replace mysql_version check with omit_virtual_cols() in
ha_innobase::check_if_supported_inplace_alter().
parent d59e15bd
...@@ -593,7 +593,7 @@ ha_innobase::check_if_supported_inplace_alter( ...@@ -593,7 +593,7 @@ ha_innobase::check_if_supported_inplace_alter(
/* Before 10.2.2 information about virtual columns was not stored in /* Before 10.2.2 information about virtual columns was not stored in
system tables. We need to do a full alter to rebuild proper 10.2.2+ system tables. We need to do a full alter to rebuild proper 10.2.2+
metadata with the information about virtual columns */ metadata with the information about virtual columns */
if (table->s->mysql_version < 100202 && table->s->virtual_fields) { if (omits_virtual_cols(*table_share)) {
DBUG_RETURN(HA_ALTER_INPLACE_NOT_SUPPORTED); DBUG_RETURN(HA_ALTER_INPLACE_NOT_SUPPORTED);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment