153#define store_record(A, B) \
154 memcpy((A)->B, (A)->record[0], (size_t)(A)->s->reclength)
155#define restore_record(A, B) \
156 memcpy((A)->record[0], (A)->B, (size_t)(A)->s->reclength)
157#define cmp_record(A, B) \
158 memcmp((A)->record[0], (A)->B, (size_t)(A)->s->reclength)
160#define tmp_file_prefix "#sql"
161#define tmp_file_prefix_length 4
162#define TMP_TABLE_KEY_EXTRA 8
163#define PLACEHOLDER_TABLE_ROW_ESTIMATE 2
646 uint deadlock_weight_arg)
1110 memcpy(key_buff,
key, key_length);
1218 uint deadlock_weight);
1394#define STATUS_NOT_STARTED 1
1400#define STATUS_NOT_FOUND 2
1402#define STATUS_UPDATED 16
1407#define STATUS_NULL_ROW 32
1409#define STATUS_DELETED 64
1980 uint *blob_fld,
bool is_virtual);
1987 uint key_parts = 0)
const;
2046 assert(index_no < s->
keys);
2063 assert((
file ==
nullptr && file_arg !=
nullptr) ||
2064 (
file !=
nullptr && file_arg ==
nullptr));
2262 Key_map *covering_prefix_keys);
2526 if (
table->s->null_bytes > 0)
2527 memset(
table->null_flags, 255,
table->s->null_bytes);
2530#define MY_I_S_MAYBE_NULL 1
2531#define MY_I_S_UNSIGNED 2
2586#define VIEW_SUID_INVOKER 0
2587#define VIEW_SUID_DEFINER 1
2588#define VIEW_SUID_DEFAULT 2
2591#define VIEW_CHECK_NONE 0
2592#define VIEW_CHECK_LOCAL 1
2593#define VIEW_CHECK_CASCADED 2
2596#define VIEW_CHECK_OK 0
2597#define VIEW_CHECK_ERROR 1
2598#define VIEW_CHECK_SKIP 2
2601#define MAX_TDC_BLOB_SIZE 65536
2921 const char *table_name_arg,
size_t table_name_length_arg,
2939 alias, lock_type) {}
2982 alias(table_name_arg),
2993 const char *table_name_arg,
size_t table_name_length_arg,
2998 alias(table_name_arg),
3009 const char *table_name_arg,
size_t table_name_length_arg,
3013 alias(table_name_arg),
3024 const char *table_name_arg,
size_t table_name_length_arg,
3038 const char *table_name_arg,
size_t table_name_length_arg,
3054 const char *table_name_arg,
size_t table_name_length_arg,
3085 assert(cond ==
nullptr || cond == (
Item *)1 ||
m_join_cond !=
nullptr);
3271 tr->m_updated =
true;
3280 tr->m_inserted =
true;
3289 tr->m_deleted =
true;
3516 if (emb->outer_join)
return true;
3821 Item *sampling_percentage_arg) {
4134 const char *
name()
override;
4152 const char *
name()
override;
4173 void next()
override;
4208 void next()
override;
4272 MY_BITMAP *write_set [[maybe_unused]]) {
4274 save[0] = read_set->bitmap;
4275 save[1] = write_set->bitmap;
4325 const char *source_name,
Field *field,
4326 bool is_create_table,
bool *error_reported);
4344 handlerton *engine_type,
bool is_create_table);
4347 uint db_stat, uint prgflag, uint ha_open_flags,
4348 TABLE *outparam,
bool is_create_table,
4351 const char *
key,
size_t key_length,
4352 bool open_secondary);
4360 bool preserve_lettercase);
4370int set_zone(
int nr,
int min_zone,
int max_zone);
4427 return (!strcmp(
"performance_schema", tl->
db) &&
4429 strstr(tl->
table_name,
"setup_") ==
nullptr);
4436 const char *
name =
table->s->table_name.str;
4444 uint *usable_parts,
bool use_extended_sk);
4446 uint primary_key_n,
KEY *keyinfo, uint key_n,
4447 uint key_part_n, uint *usable_parts,
4448 bool part_of_key_not_extended);
4464 if (!tl->
table)
return false;
4471 if (!tl->
table->
s)
return false;
4529 :
start(start_arg) {}
4534 if (cte ==
nullptr) {
4541 while (ref_idx < cte->tmp_tables.size()) {
4590 return !
table->const_table && !(
table->is_nullable() &&
table->null_row);
4683 const char *db,
const char *
table,
4684 bool is_fix_view_cols_and_deps);