#include <sys/types.h>
#include "lex_string.h"
#include "m_string.h"
#include "my_base.h"
#include "sql/mem_root_array.h"
#include "sql/sql_list.h"
Go to the source code of this file.
|
enum | keytype {
KEYTYPE_PRIMARY
, KEYTYPE_UNIQUE
, KEYTYPE_MULTIPLE
, KEYTYPE_FULLTEXT
,
KEYTYPE_SPATIAL
, KEYTYPE_FOREIGN
} |
|
enum | fk_option {
FK_OPTION_UNDEF
, FK_OPTION_RESTRICT
, FK_OPTION_CASCADE
, FK_OPTION_SET_NULL
,
FK_OPTION_NO_ACTION
, FK_OPTION_DEFAULT
} |
|
enum | fk_match_opt { FK_MATCH_UNDEF
, FK_MATCH_FULL
, FK_MATCH_PARTIAL
, FK_MATCH_SIMPLE
} |
|
enum | enum_order : int { ORDER_NOT_RELEVANT = 1
, ORDER_ASC
, ORDER_DESC
} |
|
◆ enum_order
Enumerator |
---|
ORDER_NOT_RELEVANT | |
ORDER_ASC | |
ORDER_DESC | |
◆ fk_match_opt
Enumerator |
---|
FK_MATCH_UNDEF | |
FK_MATCH_FULL | |
FK_MATCH_PARTIAL | |
FK_MATCH_SIMPLE | |
◆ fk_option
Enumerator |
---|
FK_OPTION_UNDEF | |
FK_OPTION_RESTRICT | |
FK_OPTION_CASCADE | |
FK_OPTION_SET_NULL | |
FK_OPTION_NO_ACTION | |
FK_OPTION_DEFAULT | |
◆ keytype
Enumerator |
---|
KEYTYPE_PRIMARY | |
KEYTYPE_UNIQUE | |
KEYTYPE_MULTIPLE | |
KEYTYPE_FULLTEXT | |
KEYTYPE_SPATIAL | |
KEYTYPE_FOREIGN | |
◆ foreign_key_prefix()
Test if a foreign key (= generated key) is a prefix of the given key (ignoring key name, key type and order of columns)
- Note
- This is only used to test if an index for a FOREIGN KEY exists. We only compare field names.
- Return values
-
false | Generated key is a prefix of other key |
true | Not equal |
◆ default_key_create_info