diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-09-06 14:42:33 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-09-06 14:42:33 +0400 |
commit | 225440047d145bbe6a92bff05c5d4aa33e0aca91 (patch) | |
tree | 96d93f29a84df1fe66bdabfcc8fd20c9fc326013 /sql/sql_alter.h | |
parent | 00dfe27f7c5a0382d16cac832e879ae9f1cc45e9 (diff) | |
download | mariadb-git-225440047d145bbe6a92bff05c5d4aa33e0aca91.tar.gz |
MDEV-10421 duplicate CHECK CONSTRAINTs.
mysql_prepare_create_table fixed so it doesn't let duplicating
constraint names. Syntax for CONSTRAINT IF NOT EXISTS added
and handled in mysql_alter_table.
Diffstat (limited to 'sql/sql_alter.h')
-rw-r--r-- | sql/sql_alter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_alter.h b/sql/sql_alter.h index 9e5fbaa425f..faba3a14a1b 100644 --- a/sql/sql_alter.h +++ b/sql/sql_alter.h @@ -174,6 +174,8 @@ public: List<Key> key_list; // List of columns, used by both CREATE and ALTER TABLE. List<Create_field> create_list; + + static const uint CHECK_CONSTRAINT_IF_NOT_EXISTS= 1; List<Virtual_column_info> check_constraint_list; // Type of ALTER TABLE operation. uint flags; |