Browse Source

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().
pull/1335/head
Thirunarayanan Balathandayuthapani 7 years ago
committed by Marko Mäkelä
parent
commit
96d9f03328
  1. 2
      storage/innobase/handler/handler0alter.cc

2
storage/innobase/handler/handler0alter.cc

@ -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);
}

Loading…
Cancel
Save