summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2015-03-20 11:46:44 +0400
committerAlexander Barkov <bar@mariadb.org>2015-03-20 11:46:44 +0400
commit2a2cc164784b10a6c87f626a98b3363a976a5eb7 (patch)
treeca3577668b32d1dff550b6a46bf695617f9ab4eb /sql/sql_class.h
parente3795318abd912288d34bb7f30cdb5dce615c781 (diff)
downloadmariadb-git-2a2cc164784b10a6c87f626a98b3363a976a5eb7.tar.gz
Refactoring in sql_yacc.yy. A pre-requirement patch for
MDEV-7801 Unexpected syntax error in ALTER TABLE t1 ADD INDEX TYPE BTREE MDEV-7284 INDEX: CREATE OR REPLACE
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 44e4be74695..19baf6783f7 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -290,6 +290,14 @@ public:
bool create_if_not_exists;
Key(enum Keytype type_par, const LEX_STRING &name_arg,
+ ha_key_alg algorithm_arg, bool generated_arg, bool if_not_exists_opt)
+ :type(type_par), key_create_info(default_key_create_info),
+ name(name_arg), option_list(NULL), generated(generated_arg),
+ create_if_not_exists(if_not_exists_opt)
+ {
+ key_create_info.algorithm= algorithm_arg;
+ }
+ Key(enum Keytype type_par, const LEX_STRING &name_arg,
KEY_CREATE_INFO *key_info_arg,
bool generated_arg, List<Key_part_spec> &cols,
engine_option_value *create_opt, bool if_not_exists_opt)