31#ifndef SQL_CONST_INCLUDED
32#define SQL_CONST_INCLUDED
55 std::numeric_limits<uint32_t>::max()};
140#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:853
#define MAX_INDEXES
Definition: config.h:210
uint64_t table_map
Definition: my_table_map.h:30
constexpr const table_map RAND_TABLE_BIT
Definition: sql_const.h:112
constexpr const int MAX_TIME_FULL_WIDTH
-DDDDDD HH:MM:SS.
Definition: sql_const.h:73
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:128
constexpr const size_t TABLE_ALLOC_BLOCK_SIZE
Definition: sql_const.h:149
constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_MERGE
Definition: sql_const.h:217
constexpr const int MAX_FIELD_WIDTH
Max column width + 1.
Definition: sql_const.h:66
constexpr const size_t UUID_LENGTH
Definition: sql_const.h:264
constexpr const uint64_t OPTIMIZER_SWITCH_HYPERGRAPH_OPTIMIZER
Definition: sql_const.h:223
constexpr const uint64_t OPTIMIZER_SWITCH_MRR
If this is off, MRR is never used.
Definition: sql_const.h:199
constexpr const uint64_t OPTIMIZER_SWITCH_COND_FANOUT_FILTER
Definition: sql_const.h:216
constexpr const size_t MIN_SORT_MEMORY
Definition: sql_const.h:123
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:206
constexpr const uint64_t OPTIMIZER_SWITCH_HASH_JOIN
Definition: sql_const.h:220
constexpr const unsigned int MAX_KEY
Definition: sql_const.h:46
constexpr const int MAX_FIELD_VARCHARLENGTH
Definition: sql_const.h:51
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:173
constexpr const int MAX_FIELDS
Maximum number of columns.
Definition: sql_const.h:117
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_CONDITION_PUSHDOWN
Definition: sql_const.h:197
constexpr const int MAX_TIME_WIDTH
-838:59:59
Definition: sql_const.h:71
constexpr const int MAX_DATE_WIDTH
YYYY-MM-DD.
Definition: sql_const.h:69
constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_CONDITION_PUSHDOWN
Definition: sql_const.h:224
constexpr const table_map PSEUDO_TABLE_BITS
Definition: sql_const.h:113
constexpr const size_t MAX_PASSWORD_LENGTH
Definition: sql_const.h:133
bool operator&(enum_walk lhs, enum_walk rhs)
Definition: sql_const.h:299
constexpr const uint64_t OPTIMIZER_SWITCH_BKA
Definition: sql_const.h:208
constexpr const uint64_t OPTIMIZER_SWITCH_MATERIALIZATION
Definition: sql_const.h:209
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_UNION
Definition: sql_const.h:193
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:63
constexpr const int MAX_FIELD_CHARLENGTH
Definition: sql_const.h:50
constexpr const uint64_t OPTIMIZER_SWITCH_USE_INVISIBLE_INDEXES
Definition: sql_const.h:218
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:195
constexpr const unsigned int MAX_REF_PARTS
Definition: sql_const.h:47
constexpr const size_t STRING_BUFFER_USUAL_SIZE
Definition: sql_const.h:125
constexpr const int MAX_PARTITIONS
Definition: sql_const.h:118
constexpr const int PRECISION_FOR_FLOAT
Definition: sql_const.h:152
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:143
constexpr const table_map OUTER_REF_TABLE_BIT
Definition: sql_const.h:111
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_SORT_UNION
Definition: sql_const.h:194
constexpr const uint64_t OPTIMIZER_SWITCH_SUBQUERY_TO_DERIVED
Definition: sql_const.h:221
constexpr const int MAX_INTERVAL_VALUE_LENGTH
Max length of enum/set values.
Definition: sql_const.h:121
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:186
constexpr const unsigned int MAX_KEY_LENGTH
Definition: sql_const.h:48
constexpr const int MAX_DOUBLE_STR_LENGTH
-[digits].E+###
Definition: sql_const.h:157
constexpr const uint64_t OPTIMIZER_SWITCH_LOOSE_SCAN
Definition: sql_const.h:211
constexpr const uint64_t OPTIMIZER_SWITCH_BNL
Definition: sql_const.h:207
constexpr const int STACK_BUFF_ALLOC
For stack overrun checks.
Definition: sql_const.h:146
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:215
constexpr const size_t MAX_TABLES
Max tables in join.
Definition: sql_const.h:108
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:148
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:222
constexpr const uint64_t OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN
Definition: sql_const.h:196
constexpr const int MAX_FLOAT_STR_LENGTH
-[digits].E+##
Definition: sql_const.h:155
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:181
constexpr const int PRECISION_FOR_DOUBLE
Definition: sql_const.h:151
constexpr const uint64_t OPTIMIZER_SWITCH_FIRSTMATCH
Definition: sql_const.h:212
constexpr const table_map INNER_TABLE_BIT
Definition: sql_const.h:110
constexpr const int MAX_DATETIME_FULL_WIDTH
YYYY-MM-DD HH:MM:SS.
Definition: sql_const.h:75
constexpr const int MAX_DATETIME_WIDTH
YYYY-MM-DD HH:MM:SS.
Definition: sql_const.h:77
constexpr const uint64_t OPTIMIZER_SWITCH_DUPSWEEDOUT
Definition: sql_const.h:213
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:210
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:105
constexpr const int MAX_FIELD_NAME
Definition: sql_const.h:44
constexpr const int CREATE_MODE
Default mode on new files.
Definition: sql_const.h:131
enum_condition_context
Enumeration for Query_block::condition_context.
Definition: sql_const.h:311
constexpr const unsigned long LONG_TIMEOUT
Definition: sql_const.h:159
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE
@optimizer_switch flags.
Definition: sql_const.h:192
constexpr const unsigned int MAX_FIELD_BLOBLENGTH
Definition: sql_const.h:54
constexpr const uint64_t OPTIMIZER_SWITCH_SUBQ_MAT_COST_BASED
Definition: sql_const.h:214
constexpr const uint64_t OPTIMIZER_SKIP_SCAN
Definition: sql_const.h:219