MySQL 9.1.0
Source Code Documentation
|
Values for the flags bitmask used by Send_field:flags. More...
Macros | |
#define | NOT_NULL_FLAG 1 |
Field can't be NULL. More... | |
#define | PRI_KEY_FLAG 2 |
Field is part of a primary key. More... | |
#define | UNIQUE_KEY_FLAG 4 |
Field is part of a unique key. More... | |
#define | MULTIPLE_KEY_FLAG 8 |
Field is part of a key. More... | |
#define | BLOB_FLAG 16 |
Field is a blob. More... | |
#define | UNSIGNED_FLAG 32 |
Field is unsigned. More... | |
#define | ZEROFILL_FLAG 64 |
Field is zerofill. More... | |
#define | BINARY_FLAG 128 |
Field is binary More... | |
#define | ENUM_FLAG 256 |
field is an enum More... | |
#define | AUTO_INCREMENT_FLAG 512 |
field is a autoincrement field More... | |
#define | TIMESTAMP_FLAG 1024 |
Field is a timestamp. More... | |
#define | SET_FLAG 2048 |
field is a set More... | |
#define | NO_DEFAULT_VALUE_FLAG 4096 |
Field doesn't have default value. More... | |
#define | ON_UPDATE_NOW_FLAG 8192 |
Field is set to NOW on UPDATE. More... | |
#define | NUM_FLAG 32768 |
Field is num (for clients) More... | |
#define | PART_KEY_FLAG 16384 |
Intern; Part of some key. More... | |
#define | GROUP_FLAG 32768 |
Intern: Group field. More... | |
#define | UNIQUE_FLAG 65536 |
Intern: Used by sql_yacc. More... | |
#define | BINCMP_FLAG 131072 |
Intern: Used by sql_yacc. More... | |
#define | GET_FIXED_FIELDS_FLAG (1 << 18) |
Used to get fields in item tree . More... | |
#define | FIELD_IN_PART_FUNC_FLAG (1 << 19) |
Field part of partition func. More... | |
#define | FIELD_IN_ADD_INDEX (1 << 20) |
Intern: Field in TABLE object for new version of altered table, which participates in a newly added index. More... | |
#define | FIELD_IS_RENAMED (1 << 21) |
Intern: Field is being renamed. More... | |
#define | FIELD_FLAGS_STORAGE_MEDIA 22 |
Field storage media, bit 22-23. More... | |
#define | FIELD_FLAGS_STORAGE_MEDIA_MASK (3 << FIELD_FLAGS_STORAGE_MEDIA) |
#define | FIELD_FLAGS_COLUMN_FORMAT 24 |
Field column format, bit 24-25. More... | |
#define | FIELD_FLAGS_COLUMN_FORMAT_MASK (3 << FIELD_FLAGS_COLUMN_FORMAT) |
#define | FIELD_IS_DROPPED (1 << 26) |
Intern: Field is being dropped. More... | |
#define | EXPLICIT_NULL_FLAG (1 << 27) |
Field is explicitly specified as \ NULL by the user. More... | |
#define | NOT_SECONDARY_FLAG (1 << 29) |
Field will not be loaded in secondary engine. More... | |
#define | FIELD_IS_INVISIBLE (1 << 30) |
Field is explicitly marked as invisible by the user. More... | |
Values for the flags bitmask used by Send_field:flags.
Currently need to fit into 32 bits.
Each bit represents an optional feature of the protocol.
Both the client and the server are sending these.
The intersection of the two determines what optional parts of the protocol will be used.
#define AUTO_INCREMENT_FLAG 512 |
field is a autoincrement field
#define BINARY_FLAG 128 |
Field is binary
#define BINCMP_FLAG 131072 |
Intern: Used by sql_yacc.
#define BLOB_FLAG 16 |
Field is a blob.
#define ENUM_FLAG 256 |
field is an enum
#define EXPLICIT_NULL_FLAG (1 << 27) |
Field is explicitly specified as \ NULL by the user.
#define FIELD_FLAGS_COLUMN_FORMAT 24 |
Field column format, bit 24-25.
#define FIELD_FLAGS_COLUMN_FORMAT_MASK (3 << FIELD_FLAGS_COLUMN_FORMAT) |
#define FIELD_FLAGS_STORAGE_MEDIA 22 |
Field storage media, bit 22-23.
#define FIELD_FLAGS_STORAGE_MEDIA_MASK (3 << FIELD_FLAGS_STORAGE_MEDIA) |
#define FIELD_IN_ADD_INDEX (1 << 20) |
Intern: Field in TABLE object for new version of altered table, which participates in a newly added index.
#define FIELD_IN_PART_FUNC_FLAG (1 << 19) |
Field part of partition func.
#define FIELD_IS_DROPPED (1 << 26) |
Intern: Field is being dropped.
#define FIELD_IS_INVISIBLE (1 << 30) |
Field is explicitly marked as invisible by the user.
#define FIELD_IS_RENAMED (1 << 21) |
Intern: Field is being renamed.
#define GET_FIXED_FIELDS_FLAG (1 << 18) |
Used to get fields in item tree .
#define GROUP_FLAG 32768 |
Intern: Group field.
#define MULTIPLE_KEY_FLAG 8 |
Field is part of a key.
#define NO_DEFAULT_VALUE_FLAG 4096 |
Field doesn't have default value.
#define NOT_NULL_FLAG 1 |
Field can't be NULL.
#define NOT_SECONDARY_FLAG (1 << 29) |
Field will not be loaded in secondary engine.
#define NUM_FLAG 32768 |
Field is num (for clients)
#define ON_UPDATE_NOW_FLAG 8192 |
Field is set to NOW on UPDATE.
#define PART_KEY_FLAG 16384 |
Intern; Part of some key.
#define PRI_KEY_FLAG 2 |
Field is part of a primary key.
#define SET_FLAG 2048 |
field is a set
#define TIMESTAMP_FLAG 1024 |
Field is a timestamp.
#define UNIQUE_FLAG 65536 |
Intern: Used by sql_yacc.
#define UNIQUE_KEY_FLAG 4 |
Field is part of a unique key.
#define UNSIGNED_FLAG 32 |
Field is unsigned.
#define ZEROFILL_FLAG 64 |
Field is zerofill.