#include <handler.h>
◆ init_create_options_from_share()
void HA_CREATE_INFO::init_create_options_from_share |
( |
const TABLE_SHARE * |
share, |
|
|
uint64_t |
used_fields |
|
) |
| |
Fill HA_CREATE_INFO to be used by ALTER as well as upgrade code.
This function separates code from mysql_prepare_alter_table() to be used by upgrade code as well to reduce code duplication. For ALTER code path, this lets new create options override the old ones.
- Parameters
-
[in] | share | TABLE_SHARE object |
[in] | used_fields | If a given create option is not flagged, old value be copied from the TABLE_SHARE. |
◆ alias
const char* HA_CREATE_INFO::alias {nullptr} |
◆ auto_increment_value
ulonglong HA_CREATE_INFO::auto_increment_value {0} |
◆ avg_row_length
ulong HA_CREATE_INFO::avg_row_length {0} |
◆ comment
◆ compress
Algorithm (and possible options) to be used for InnoDB's transparent page compression.
If this attribute is set then it is hint to the storage engine to try and compress the data using the specified algorithm where possible. Note: this value is interpreted by the storage engine only. and ignored by the Server layer.
◆ connect_string
◆ data_file_name
const char* HA_CREATE_INFO::data_file_name {nullptr} |
◆ db_type
◆ default_table_charset
◆ encrypt_type
This attribute is used for InnoDB's transparent page encryption.
If this attribute is set then it is hint to the storage engine to encrypt the data. Note: this value is interpreted by the storage engine only. and ignored by the Server layer.
◆ engine_attribute
◆ index_file_name
const char* HA_CREATE_INFO::index_file_name {nullptr} |
◆ key_block_size
std::uint32_t HA_CREATE_INFO::key_block_size {0} |
◆ m_hidden
bool HA_CREATE_INFO::m_hidden {false} |
◆ m_implicit_tablespace_autoextend_size
ulonglong HA_CREATE_INFO::m_implicit_tablespace_autoextend_size {0} |
◆ m_implicit_tablespace_autoextend_size_change
bool HA_CREATE_INFO::m_implicit_tablespace_autoextend_size_change {true} |
◆ m_transactional_ddl
bool HA_CREATE_INFO::m_transactional_ddl {false} |
◆ max_rows
◆ merge_insert_method
uint HA_CREATE_INFO::merge_insert_method {0} |
◆ merge_list
◆ min_rows
◆ null_bits
uint HA_CREATE_INFO::null_bits {0} |
◆ options
uint HA_CREATE_INFO::options {0} |
◆ password
const char* HA_CREATE_INFO::password {nullptr} |
◆ row_type
Row type of the table definition.
Defaults to ROW_TYPE_DEFAULT for all non-ALTER statements. For ALTER TABLE defaults to ROW_TYPE_NOT_USED (means "keep the current").
Can be changed either explicitly by the parser. If nothing specified inherits the value of the original table (if present).
◆ schema_read_only
bool HA_CREATE_INFO::schema_read_only {false} |
◆ secondary_engine
Secondary engine of the table.
Is nullptr if no secondary engine defined.
◆ secondary_engine_attribute
◆ stats_auto_recalc
◆ stats_sample_pages
uint HA_CREATE_INFO::stats_sample_pages {0} |
◆ storage_media
◆ table_charset
◆ table_options
ulong HA_CREATE_INFO::table_options {0} |
◆ tablespace
const char* HA_CREATE_INFO::tablespace {nullptr} |
◆ used_fields
uint64_t HA_CREATE_INFO::used_fields {0} |
The documentation for this struct was generated from the following files: