41
41
class Key :public memory::SqlAlloc {
43
43
enum Keytype { PRIMARY, UNIQUE, MULTIPLE, FOREIGN_KEY};
45
45
KEY_CREATE_INFO key_create_info;
46
46
List<Key_part_spec> columns;
50
Key(enum Keytype type_par, const LEX_STRING &name_arg,
51
const lex_string_t &name_arg,
51
52
KEY_CREATE_INFO *key_info_arg,
52
bool generated_arg, List<Key_part_spec> &cols)
53
:type(type_par), key_create_info(*key_info_arg), columns(cols),
54
name(name_arg), generated(generated_arg)
53
bool generated_arg, List<Key_part_spec> &cols) :
55
key_create_info(*key_info_arg),
58
generated(generated_arg)
56
Key(enum Keytype type_par, const char *name_arg, size_t name_len_arg,
57
KEY_CREATE_INFO *key_info_arg, bool generated_arg,
58
List<Key_part_spec> &cols)
59
:type(type_par), key_create_info(*key_info_arg), columns(cols),
64
KEY_CREATE_INFO *key_info_arg,
66
List<Key_part_spec> &cols) :
68
key_create_info(*key_info_arg),
60
70
generated(generated_arg)
62
72
name.str= const_cast<char *>(name_arg);