summaryrefslogtreecommitdiff
path: root/sql/sql_alter.h
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2017-06-15 16:02:32 +0300
committerAleksey Midenkov <midenok@gmail.com>2017-06-19 15:21:39 +0300
commit448374a228aee3cd867d89f1a1eae9884f5bf434 (patch)
treeeb21e9fc41102454aacc899fb0443601e9aef0b1 /sql/sql_alter.h
parentefaa0d66dafc44d994054c7d6ff160cb295a0bf6 (diff)
downloadmariadb-git-448374a228aee3cd867d89f1a1eae9884f5bf434.tar.gz
SQL, IB: (0.10) VTMD tracking [closes #124]
IB: Fixes in logic when to do versioned or usual row updates. Now it is able to do unversioned updates for versioned tables just by disabling `TABLE_SHARE::versioned` flag. SQL: DDL tracking for: * RENAME TABLE, ALTER TABLE .. RENAME TO; * DROP TABLE; * data-modifying operations (f.ex. ALTER TABLE .. ADD/DROP COLUMN).
Diffstat (limited to 'sql/sql_alter.h')
-rw-r--r--sql/sql_alter.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/sql_alter.h b/sql/sql_alter.h
index 5668a0f52be..a1c2d87440b 100644
--- a/sql/sql_alter.h
+++ b/sql/sql_alter.h
@@ -126,6 +126,22 @@ public:
enum enum_enable_or_disable { LEAVE_AS_IS, ENABLE, DISABLE };
+ bool vers_data_modifying() const
+ {
+ return flags & (
+ ALTER_ADD_COLUMN |
+ ALTER_DROP_COLUMN |
+ ALTER_CHANGE_COLUMN |
+ ALTER_DROP_PARTITION |
+ ALTER_COALESCE_PARTITION |
+ ALTER_REORGANIZE_PARTITION |
+ ALTER_TABLE_REORG |
+ ALTER_REMOVE_PARTITIONING |
+ ALTER_EXCHANGE_PARTITION |
+ ALTER_TRUNCATE_PARTITION |
+ ALTER_COLUMN_ORDER);
+ }
+
/**
The different values of the ALGORITHM clause.
Describes which algorithm to use when altering the table.