1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

A preparatory patch for MDEV-7284 INDEX: CREATE OR REPLACE.

Removing "bool Key::create_if_not_exists" and deriving Key from
DDL_options instead.
This commit is contained in:
Alexander Barkov
2015-03-20 13:51:41 +04:00
parent 2a2cc16478
commit 0c26c0032c
6 changed files with 30 additions and 28 deletions

View File

@@ -112,13 +112,12 @@ bool Key_part_spec::operator==(const Key_part_spec& other) const
*/
Key::Key(const Key &rhs, MEM_ROOT *mem_root)
:type(rhs.type),
:DDL_options(rhs),type(rhs.type),
key_create_info(rhs.key_create_info),
columns(rhs.columns, mem_root),
name(rhs.name),
option_list(rhs.option_list),
generated(rhs.generated),
create_if_not_exists(rhs.create_if_not_exists)
generated(rhs.generated)
{
list_copy_and_replace_each_value(columns, mem_root);
}