31#ifndef SQL_CONST_INCLUDED
32#define SQL_CONST_INCLUDED
54 std::numeric_limits<uint32_t>::max()};
139#if defined HAVE_UBSAN && SIZEOF_CHARP == 4
264constexpr const size_t UUID_LENGTH{8 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 12};
300 return (
int(lhs) &
int(rhs)) != 0;
318#define SYNTHETIC_FIELD_NAME "Name_exp_"
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:936
#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:111
constexpr const int MAX_TIME_FULL_WIDTH
-DDDDDD HH:MM:SS.
Definition: sql_const.h:72
SHOW_COMP_OPTION
Definition: sql_const.h:228
@ SHOW_OPTION_DISABLED
Definition: sql_const.h:228
@ SHOW_OPTION_YES
Definition: sql_const.h:228
@ SHOW_OPTION_NO
Definition: sql_const.h:228
constexpr const size_t MEM_ROOT_BLOCK_SIZE
Memory allocated when parsing a statement.
Definition: sql_const.h:127
constexpr const size_t TABLE_ALLOC_BLOCK_SIZE
Definition: sql_const.h:148
constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_MERGE
Definition: sql_const.h:216
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:264
constexpr const uint64_t OPTIMIZER_SWITCH_HYPERGRAPH_OPTIMIZER
Definition: sql_const.h:222
constexpr const uint64_t OPTIMIZER_SWITCH_MRR
If this is off, MRR is never used.
Definition: sql_const.h:198
constexpr const uint64_t OPTIMIZER_SWITCH_HASH_SET_OPERATIONS
Definition: sql_const.h:225
constexpr const uint64_t OPTIMIZER_SWITCH_COND_FANOUT_FILTER
Definition: sql_const.h:215
constexpr const size_t MIN_SORT_MEMORY
Definition: sql_const.h:122
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:205
constexpr const uint64_t OPTIMIZER_SWITCH_HASH_JOIN
Definition: sql_const.h:219
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:172
constexpr const int MAX_FIELDS
Maximum number of columns.
Definition: sql_const.h:116
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_CONDITION_PUSHDOWN
Definition: sql_const.h:196
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:223
constexpr const table_map PSEUDO_TABLE_BITS
Definition: sql_const.h:112
constexpr const size_t MAX_PASSWORD_LENGTH
Definition: sql_const.h:132
bool operator&(enum_walk lhs, enum_walk rhs)
Definition: sql_const.h:299
constexpr const uint64_t OPTIMIZER_SWITCH_BKA
Definition: sql_const.h:207
constexpr const uint64_t OPTIMIZER_SWITCH_MATERIALIZATION
Definition: sql_const.h:208
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_UNION
Definition: sql_const.h:192
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:217
enum_walk operator|(enum_walk lhs, enum_walk rhs)
Definition: sql_const.h:295
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:262
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_INTERSECT
Definition: sql_const.h:194
constexpr const unsigned int MAX_REF_PARTS
Definition: sql_const.h:46
constexpr const size_t STRING_BUFFER_USUAL_SIZE
Definition: sql_const.h:124
constexpr const int MAX_PARTITIONS
Definition: sql_const.h:117
constexpr const int PRECISION_FOR_FLOAT
Definition: sql_const.h:151
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:278
@ NOT_RESOLVED
Definition: sql_const.h:279
@ RESOLVED_BEHIND_ALIAS
Definition: sql_const.h:280
@ RESOLVED_AGAINST_ALIAS
Definition: sql_const.h:281
@ RESOLVED_WITH_NO_ALIAS
Definition: sql_const.h:282
@ RESOLVED_IGNORING_ALIAS
Definition: sql_const.h:283
constexpr const long STACK_MIN_SIZE
Stack reservation.
Definition: sql_const.h:142
constexpr const table_map OUTER_REF_TABLE_BIT
Definition: sql_const.h:110
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_SORT_UNION
Definition: sql_const.h:193
constexpr const uint64_t OPTIMIZER_SWITCH_SUBQUERY_TO_DERIVED
Definition: sql_const.h:220
constexpr const int MAX_INTERVAL_VALUE_LENGTH
Max length of enum/set values.
Definition: sql_const.h:120
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:185
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:156
constexpr const uint64_t OPTIMIZER_SWITCH_LOOSE_SCAN
Definition: sql_const.h:210
constexpr const uint64_t OPTIMIZER_SWITCH_BNL
Definition: sql_const.h:206
constexpr const int STACK_BUFF_ALLOC
For stack overrun checks.
Definition: sql_const.h:145
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:241
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:248
constexpr const uint64_t OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS
Definition: sql_const.h:214
constexpr const size_t MAX_TABLES
Max tables in join.
Definition: sql_const.h:107
enum_walk
Enumeration for {Item,Query_block[_UNIT],Table_function}walk.
Definition: sql_const.h:287
constexpr const size_t ACL_ALLOC_BLOCK_SIZE
Definition: sql_const.h:147
constexpr const uint64_t OPTIMIZER_SWITCH_LAST
Definition: sql_const.h:226
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:255
constexpr const uint64_t OPTIMIZER_SWITCH_PREFER_ORDERING_INDEX
Definition: sql_const.h:221
constexpr const uint64_t OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN
Definition: sql_const.h:195
constexpr const int MAX_FLOAT_STR_LENGTH
-[digits].E+##
Definition: sql_const.h:154
bool(Item::*)(unsigned char *) Item_processor
Processor type for {Item,Query_block[_UNIT],Table_function}walk.
Definition: sql_const.h:305
constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_VIEW
Special Query_block::prepare mode: changing of query is prohibited.
Definition: sql_const.h:180
constexpr const int PRECISION_FOR_DOUBLE
Definition: sql_const.h:150
constexpr const uint64_t OPTIMIZER_SWITCH_FIRSTMATCH
Definition: sql_const.h:211
constexpr const table_map INNER_TABLE_BIT
Definition: sql_const.h:109
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:212
enum_mark_columns
Definition: sql_const.h:230
@ MARK_COLUMNS_TEMP
Definition: sql_const.h:234
@ MARK_COLUMNS_READ
Definition: sql_const.h:232
@ MARK_COLUMNS_WRITE
Definition: sql_const.h:233
@ MARK_COLUMNS_NONE
Definition: sql_const.h:231
constexpr const int MAX_ALIAS_NAME
Definition: sql_const.h:43
constexpr const uint64_t OPTIMIZER_SWITCH_SEMIJOIN
Definition: sql_const.h:209
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:104
constexpr const int CREATE_MODE
Default mode on new files.
Definition: sql_const.h:130
enum_condition_context
Enumeration for Query_block::condition_context.
Definition: sql_const.h:311
constexpr const unsigned long LONG_TIMEOUT
Definition: sql_const.h:158
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE
@optimizer_switch flags.
Definition: sql_const.h:191
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:213
constexpr const uint64_t OPTIMIZER_SKIP_SCAN
Definition: sql_const.h:218