My Project
|
Public Types | |
enum | Keytype { PRIMARY, UNIQUE, MULTIPLE, FULLTEXT, SPATIAL, FOREIGN_KEY } |
Public Member Functions | |
Key (enum Keytype type_par, const LEX_STRING &name_arg, KEY_CREATE_INFO *key_info_arg, bool generated_arg, List< Key_part_spec > &cols) | |
Key (enum Keytype type_par, const char *name_arg, size_t name_len_arg, KEY_CREATE_INFO *key_info_arg, bool generated_arg, List< Key_part_spec > &cols) | |
Key (const Key &rhs, MEM_ROOT *mem_root) | |
virtual Key * | clone (MEM_ROOT *mem_root) const |
Public Attributes | |
enum Keytype | type |
KEY_CREATE_INFO | key_create_info |
List< Key_part_spec > | columns |
LEX_STRING | name |
bool | generated |
Friends | |
bool | foreign_key_prefix (Key *a, Key *b) |
Key::Key | ( | const Key & | rhs, |
MEM_ROOT * | mem_root | ||
) |
Construct an (almost) deep copy of this key. Only those elements that are known to never change are not copied. If out of memory, a partial copy is returned and an error is set in THD.
virtual Key* Key::clone | ( | MEM_ROOT * | mem_root | ) | const [inline, virtual] |
Used to make a clone of this object for ALTER/CREATE TABLE
Reimplemented in Foreign_key.