mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -151,7 +151,6 @@ enum enum_alter_inplace_result {
|
||||
#define HA_HAS_OLD_CHECKSUM (1ULL << 24)
|
||||
/* Table data are stored in separate files (for lower_case_table_names) */
|
||||
#define HA_FILE_BASED (1ULL << 26)
|
||||
#define HA_NO_VARCHAR (1ULL << 27) /* unused */
|
||||
#define HA_CAN_BIT_FIELD (1ULL << 28) /* supports bit fields */
|
||||
#define HA_NEED_READ_RANGE_BUFFER (1ULL << 29) /* for read_multi_range */
|
||||
#define HA_ANY_INDEX_MAY_BE_UNIQUE (1ULL << 30)
|
||||
@ -302,6 +301,9 @@ enum enum_alter_inplace_result {
|
||||
/* calling cmp_ref() on the engine is expensive */
|
||||
#define HA_CMP_REF_IS_EXPENSIVE (1ULL << 54)
|
||||
|
||||
/* Engine wants primary keys for everything except sequences */
|
||||
#define HA_WANTS_PRIMARY_KEY (1ULL << 55)
|
||||
|
||||
/* bits in index_flags(index_number) for what you can do with index */
|
||||
#define HA_READ_NEXT 1 /* TODO really use this flag */
|
||||
#define HA_READ_PREV 2 /* supports ::index_prev */
|
||||
@ -1906,6 +1908,8 @@ enum vers_sys_type_t
|
||||
VERS_TRX_ID
|
||||
};
|
||||
|
||||
extern const LEX_CSTRING null_clex_str;
|
||||
|
||||
struct Vers_parse_info
|
||||
{
|
||||
Vers_parse_info() :
|
||||
@ -1914,6 +1918,15 @@ struct Vers_parse_info
|
||||
unversioned_fields(false)
|
||||
{}
|
||||
|
||||
void init() // Deep initialization
|
||||
{
|
||||
system_time= start_end_t(null_clex_str, null_clex_str);
|
||||
as_row= start_end_t(null_clex_str, null_clex_str);
|
||||
check_unit= VERS_UNDEFINED;
|
||||
versioned_fields= false;
|
||||
unversioned_fields= false;
|
||||
}
|
||||
|
||||
struct start_end_t
|
||||
{
|
||||
start_end_t()
|
||||
@ -1993,7 +2006,7 @@ public:
|
||||
- [AS] SELECT ... // Copy structure from a subquery
|
||||
*/
|
||||
|
||||
struct Table_scope_and_contents_source_st
|
||||
struct Table_scope_and_contents_source_pod_st // For trivial members
|
||||
{
|
||||
CHARSET_INFO *table_charset;
|
||||
LEX_CUSTRING tabledef_version;
|
||||
@ -2019,7 +2032,6 @@ struct Table_scope_and_contents_source_st
|
||||
uint options; /* OR of HA_CREATE_ options */
|
||||
uint merge_insert_method;
|
||||
uint extra_size; /* length of extra data segment */
|
||||
SQL_I_List<TABLE_LIST> merge_list;
|
||||
handlerton *db_type;
|
||||
/**
|
||||
Row type of the table definition.
|
||||
@ -2053,15 +2065,6 @@ struct Table_scope_and_contents_source_st
|
||||
bool table_was_deleted;
|
||||
sequence_definition *seq_create_info;
|
||||
|
||||
Vers_parse_info vers_info;
|
||||
|
||||
bool vers_fix_system_fields(THD *thd, Alter_info *alter_info,
|
||||
const TABLE_LIST &create_table,
|
||||
bool create_select= false);
|
||||
|
||||
bool vers_check_system_fields(THD *thd, Alter_info *alter_info,
|
||||
const TABLE_LIST &create_table);
|
||||
|
||||
bool vers_native(THD *thd) const;
|
||||
|
||||
void init()
|
||||
@ -2082,6 +2085,30 @@ struct Table_scope_and_contents_source_st
|
||||
};
|
||||
|
||||
|
||||
struct Table_scope_and_contents_source_st:
|
||||
public Table_scope_and_contents_source_pod_st
|
||||
{
|
||||
SQL_I_List<TABLE_LIST> merge_list;
|
||||
|
||||
Vers_parse_info vers_info;
|
||||
|
||||
void init()
|
||||
{
|
||||
Table_scope_and_contents_source_pod_st::init();
|
||||
merge_list.empty();
|
||||
vers_info.init();
|
||||
}
|
||||
|
||||
bool vers_fix_system_fields(THD *thd, Alter_info *alter_info,
|
||||
const TABLE_LIST &create_table,
|
||||
bool create_select= false);
|
||||
|
||||
bool vers_check_system_fields(THD *thd, Alter_info *alter_info,
|
||||
const TABLE_LIST &create_table);
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
This struct is passed to handler table routines, e.g. ha_create().
|
||||
It does not include the "OR REPLACE" and "IF NOT EXISTS" parts, as these
|
||||
|
Reference in New Issue
Block a user