Skip to content

Commit

Permalink
MDEV-19602 Replace mysql_version check with frm_version for virtual c…
Browse files Browse the repository at this point in the history
…olumns inside InnoDB

- Replace mysql_version check with omit_virtual_cols() in
ha_innobase::check_if_supported_inplace_alter().
  • Loading branch information
Thirunarayanan authored and dr-m committed May 28, 2019
1 parent d59e15b commit 96d9f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/innobase/handler/handler0alter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ ha_innobase::check_if_supported_inplace_alter(
/* 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+
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);
}

Expand Down

0 comments on commit 96d9f03

Please sign in to comment.