diff options
author | Alexander Barkov <bar@mariadb.org> | 2015-03-20 13:51:41 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2015-03-20 13:51:41 +0400 |
commit | 0c26c0032c9654570021094fa64b2816dc4ac9ea (patch) | |
tree | 42c56e57f12032f6d991fc554764e15df0ede368 /sql/structs.h | |
parent | 2a2cc164784b10a6c87f626a98b3363a976a5eb7 (diff) | |
download | mariadb-git-0c26c0032c9654570021094fa64b2816dc4ac9ea.tar.gz |
A preparatory patch for MDEV-7284 INDEX: CREATE OR REPLACE.
Removing "bool Key::create_if_not_exists" and deriving Key from
DDL_options instead.
Diffstat (limited to 'sql/structs.h')
-rw-r--r-- | sql/structs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/structs.h b/sql/structs.h index de062f4a2ad..191463af344 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -477,7 +477,7 @@ public: DDL options: - CREATE IF NOT EXISTS - DROP IF EXISTS - - CRESTE LIKE + - CREATE LIKE - REPLACE */ struct DDL_options_st @@ -544,6 +544,9 @@ class DDL_options: public DDL_options_st { public: DDL_options() { init(); } + DDL_options(Options options) { init(options); } + DDL_options(const DDL_options_st &options) + { DDL_options_st::operator=(options); } }; |