31#ifndef SQL_CONST_INCLUDED
32#define SQL_CONST_INCLUDED
54 std::numeric_limits<uint32_t>::max()};
141#if defined HAVE_UBSAN && SIZEOF_CHARP == 4
266constexpr const size_t UUID_LENGTH{8 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 12};
302 return (
int(lhs) &
int(rhs)) != 0;
320#define SYNTHETIC_FIELD_NAME "Name_exp_"
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:930
#define MAX_INDEXES
Definition: my_config.h:210
uint64_t table_map
Definition: my_table_map.h:30
constexpr const table_map RAND_TABLE_BIT
Definition: sql_const.h:113
constexpr const int MAX_TIME_FULL_WIDTH
-DDDDDD HH:MM:SS.
Definition: sql_const.h:72
SHOW_COMP_OPTION
Definition: sql_const.h:230
@ SHOW_OPTION_DISABLED
Definition: sql_const.h:230
@ SHOW_OPTION_YES
Definition: sql_const.h:230
@ SHOW_OPTION_NO
Definition: sql_const.h:230
constexpr const size_t MEM_ROOT_BLOCK_SIZE
Memory allocated when parsing a statement.
Definition: sql_const.h:129
constexpr const size_t TABLE_ALLOC_BLOCK_SIZE
Definition: sql_const.h:150
constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_MERGE
Definition: sql_const.h:218
constexpr const int MAX_FIELD_WIDTH
Max column width + 1.
Definition: sql_const.h:65
constexpr const size_t UUID_LENGTH
Definition: sql_const.h:266
constexpr const uint64_t OPTIMIZER_SWITCH_HYPERGRAPH_OPTIMIZER
Definition: sql_const.h:224
constexpr const uint64_t OPTIMIZER_SWITCH_MRR
If this is off, MRR is never used.
Definition: sql_const.h:200
constexpr const uint64_t OPTIMIZER_SWITCH_HASH_SET_OPERATIONS
Definition: sql_const.h:227
constexpr const uint64_t OPTIMIZER_SWITCH_COND_FANOUT_FILTER
Definition: sql_const.h:217
constexpr const size_t MIN_SORT_MEMORY
Definition: sql_const.h:124
constexpr const uint64_t OPTIMIZER_SWITCH_MRR_COST_BASED
If OPTIMIZER_SWITCH_MRR is on and this is on, MRR is used depending on a cost-based choice ("automati...
Definition: sql_const.h:207
constexpr const uint64_t OPTIMIZER_SWITCH_HASH_JOIN
Definition: sql_const.h:221
constexpr const unsigned int MAX_KEY
Definition: sql_const.h:45
constexpr const int MAX_FIELD_VARCHARLENGTH
Definition: sql_const.h:50
constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_PREPARE
Don't evaluate this subquery during statement prepare even if it's a constant one.
Definition: sql_const.h:174
constexpr const int MAX_FIELDS
Maximum number of columns.
Definition: sql_const.h:118
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_CONDITION_PUSHDOWN
Definition: sql_const.h:198
constexpr const int MAX_TIME_WIDTH
-838:59:59
Definition: sql_const.h:70
constexpr const int MAX_DATE_WIDTH
YYYY-MM-DD.
Definition: sql_const.h:68
constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_CONDITION_PUSHDOWN
Definition: sql_const.h:225
constexpr const table_map PSEUDO_TABLE_BITS
Definition: sql_const.h:114
constexpr const size_t MAX_PASSWORD_LENGTH
Definition: sql_const.h:134
bool operator&(enum_walk lhs, enum_walk rhs)
Definition: sql_const.h:301
constexpr const uint64_t OPTIMIZER_SWITCH_BKA
Definition: sql_const.h:209
constexpr const uint64_t OPTIMIZER_SWITCH_MATERIALIZATION
Definition: sql_const.h:210
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_UNION
Definition: sql_const.h:194
constexpr const int CONVERT_IF_BIGGER_TO_BLOB
CHAR and VARCHAR fields longer than this number of characters are converted to BLOB.
Definition: sql_const.h:62
constexpr const int MAX_FIELD_CHARLENGTH
Definition: sql_const.h:49
constexpr const uint64_t OPTIMIZER_SWITCH_USE_INVISIBLE_INDEXES
Definition: sql_const.h:219
enum_walk operator|(enum_walk lhs, enum_walk rhs)
Definition: sql_const.h:297
constexpr const int MYSQLD_RESTART_EXIT
Exit code used by mysqld_exit, my_thread_exit function which allows for external programs like system...
Definition: sql_const.h:264
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_INTERSECT
Definition: sql_const.h:196
constexpr const unsigned int MAX_REF_PARTS
Definition: sql_const.h:46
constexpr const size_t STRING_BUFFER_USUAL_SIZE
Definition: sql_const.h:126
constexpr const int MAX_PARTITIONS
Definition: sql_const.h:119
constexpr const int PRECISION_FOR_FLOAT
Definition: sql_const.h:153
enum_resolution_type
This enumeration type is used only by the function find_item_in_list to return the info on how an ite...
Definition: sql_const.h:280
@ NOT_RESOLVED
Definition: sql_const.h:281
@ RESOLVED_BEHIND_ALIAS
Definition: sql_const.h:282
@ RESOLVED_AGAINST_ALIAS
Definition: sql_const.h:283
@ RESOLVED_WITH_NO_ALIAS
Definition: sql_const.h:284
@ RESOLVED_IGNORING_ALIAS
Definition: sql_const.h:285
constexpr const long STACK_MIN_SIZE
Stack reservation.
Definition: sql_const.h:144
constexpr const table_map OUTER_REF_TABLE_BIT
Definition: sql_const.h:112
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_SORT_UNION
Definition: sql_const.h:195
constexpr const uint64_t OPTIMIZER_SWITCH_SUBQUERY_TO_DERIVED
Definition: sql_const.h:222
constexpr const int MAX_INTERVAL_VALUE_LENGTH
Max length of enum/set values.
Definition: sql_const.h:122
constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_DERIVED
Don't evaluate this subquery during derived table prepare even if it's a constant one.
Definition: sql_const.h:187
constexpr const unsigned int MAX_KEY_LENGTH
Definition: sql_const.h:47
constexpr const int MAX_DOUBLE_STR_LENGTH
-[digits].E+###
Definition: sql_const.h:158
constexpr const uint64_t OPTIMIZER_SWITCH_LOOSE_SCAN
Definition: sql_const.h:212
constexpr const uint64_t OPTIMIZER_SWITCH_BNL
Definition: sql_const.h:208
constexpr const int STACK_BUFF_ALLOC
For stack overrun checks.
Definition: sql_const.h:147
constexpr const int MYSQLD_SUCCESS_EXIT
Exit code used by mysqld_exit, exit and _exit function to indicate successful termination of mysqld.
Definition: sql_const.h:243
constexpr const int MYSQLD_ABORT_EXIT
Exit code used by mysqld_exit, exit and _exit function to signify unsuccessful termination of mysqld.
Definition: sql_const.h:250
constexpr const uint64_t OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS
Definition: sql_const.h:216
constexpr const size_t MAX_TABLES
Max tables in join.
Definition: sql_const.h:109
enum_walk
Enumeration for {Item,Query_block[_UNIT],Table_function}walk.
Definition: sql_const.h:289
constexpr const size_t ACL_ALLOC_BLOCK_SIZE
Definition: sql_const.h:149
constexpr const uint64_t OPTIMIZER_SWITCH_LAST
Definition: sql_const.h:228
constexpr const int MYSQLD_FAILURE_EXIT
Exit code used by mysqld_exit, exit and _exit function to signify unsuccessful termination of mysqld.
Definition: sql_const.h:257
constexpr const uint64_t OPTIMIZER_SWITCH_PREFER_ORDERING_INDEX
Definition: sql_const.h:223
constexpr const uint64_t OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN
Definition: sql_const.h:197
constexpr const int MAX_FLOAT_STR_LENGTH
-[digits].E+##
Definition: sql_const.h:156
bool(Item::*)(unsigned char *) Item_processor
Processor type for {Item,Query_block[_UNIT],Table_function}walk.
Definition: sql_const.h:307
constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_VIEW
Special Query_block::prepare mode: changing of query is prohibited.
Definition: sql_const.h:182
constexpr const int PRECISION_FOR_DOUBLE
Definition: sql_const.h:152
constexpr const uint64_t OPTIMIZER_SWITCH_FIRSTMATCH
Definition: sql_const.h:213
constexpr const table_map INNER_TABLE_BIT
Definition: sql_const.h:111
constexpr const int MAX_DATETIME_FULL_WIDTH
YYYY-MM-DD HH:MM:SS.
Definition: sql_const.h:74
constexpr const int MAX_DATETIME_WIDTH
YYYY-MM-DD HH:MM:SS.
Definition: sql_const.h:76
constexpr const uint64_t OPTIMIZER_SWITCH_DUPSWEEDOUT
Definition: sql_const.h:214
enum_mark_columns
Definition: sql_const.h:232
@ MARK_COLUMNS_TEMP
Definition: sql_const.h:236
@ MARK_COLUMNS_READ
Definition: sql_const.h:234
@ MARK_COLUMNS_WRITE
Definition: sql_const.h:235
@ MARK_COLUMNS_NONE
Definition: sql_const.h:233
constexpr const int MAX_ALIAS_NAME
Definition: sql_const.h:43
constexpr const uint64_t OPTIMIZER_SWITCH_SEMIJOIN
Definition: sql_const.h:211
constexpr const size_t MAX_TABLES_FOR_SIZE
MAX_TABLES and xxx_TABLE_BIT are used in optimization of table factors and expressions,...
Definition: sql_const.h:106
constexpr const int CREATE_MODE
Default mode on new files.
Definition: sql_const.h:132
enum_condition_context
Enumeration for Query_block::condition_context.
Definition: sql_const.h:313
constexpr const unsigned long LONG_TIMEOUT
Definition: sql_const.h:160
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE
@optimizer_switch flags.
Definition: sql_const.h:193
constexpr const unsigned int MAX_FIELD_BLOBLENGTH
Definition: sql_const.h:53
constexpr const uint64_t OPTIMIZER_SWITCH_SUBQ_MAT_COST_BASED
Definition: sql_const.h:215
constexpr const uint64_t OPTIMIZER_SKIP_SCAN
Definition: sql_const.h:220