diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-03-02 15:02:13 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-03-02 15:02:13 +0100 |
commit | eb9f422c43406172422eeaaa29dddeff742b6d14 (patch) | |
tree | c269e08c4cf12f100be8210eb08ac087d2f4be7d /sql/handler.h | |
parent | 1b608b0b9c0eae7ddcd35d54a4e9112b3c1c4966 (diff) | |
download | mariadb-git-eb9f422c43406172422eeaaa29dddeff742b6d14.tar.gz |
MDEV-5667 online alter and changed field/index options
use the Alter_inplace_info::ALTER_COLUMN_OPTION flag if
field/column flags were altered.
change ha_example to use check_if_supported_inplace_alter() instead
of obsolete check_if_incompatible_data()
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sql/handler.h b/sql/handler.h index d255c0543a9..06bc1863bbe 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -1740,8 +1740,11 @@ public: // Table is renamed static const HA_ALTER_FLAGS ALTER_RENAME = 1L << 18; - // Change the storage type of column - static const HA_ALTER_FLAGS ALTER_COLUMN_STORAGE_TYPE = 1L << 19; + // column's engine options changed, something in field->option_struct + static const HA_ALTER_FLAGS ALTER_COLUMN_OPTION = 1L << 19; + + // MySQL alias for the same thing: + static const HA_ALTER_FLAGS ALTER_COLUMN_STORAGE_TYPE = 1L << 19; // Change the column format of column static const HA_ALTER_FLAGS ALTER_COLUMN_COLUMN_FORMAT = 1L << 20; @@ -1770,7 +1773,7 @@ public: // Partition operation with ALL keyword static const HA_ALTER_FLAGS ALTER_ALL_PARTITION = 1L << 28; - // Partition operation with ALL keyword + // Virtual columns changed static const HA_ALTER_FLAGS ALTER_COLUMN_VCOL = 1L << 29; /** |