MySQL 8.0.30
Source Code Documentation
sql_const.h File Reference

File containing constants that can be used throughout the server. More...

#include <float.h>
#include <stddef.h>
#include <stdint.h>
#include <limits>
#include "my_config.h"
#include "my_table_map.h"

Go to the source code of this file.

Macros

#define MAX_TIME_ZONE_NAME_LENGTH   (NAME_LEN + 1)
 Maximum length of time zone name that we support (Time zone name is char(64) in db). More...
 
#define SYNTHETIC_FIELD_NAME   "Name_exp_"
 Used to uniquely name expressions in derived tables. More...
 

Typedefs

using Item_processor = bool(Item::*)(unsigned char *)
 Processor type for {Item,Query_block[_UNIT],Table_function}walk. More...
 

Enumerations

enum  SHOW_COMP_OPTION { SHOW_OPTION_YES , SHOW_OPTION_NO , SHOW_OPTION_DISABLED }
 
enum  enum_mark_columns { MARK_COLUMNS_NONE , MARK_COLUMNS_READ , MARK_COLUMNS_WRITE , MARK_COLUMNS_TEMP }
 
enum  enum_resolution_type {
  NOT_RESOLVED = 0 , RESOLVED_BEHIND_ALIAS , RESOLVED_AGAINST_ALIAS , RESOLVED_WITH_NO_ALIAS ,
  RESOLVED_IGNORING_ALIAS
}
 This enumeration type is used only by the function find_item_in_list to return the info on how an item has been resolved against a list of possibly aliased items. More...
 
enum class  enum_walk {
  PREFIX = 0x01 , POSTFIX = 0x02 , SUBQUERY = 0x04 , SUBQUERY_PREFIX = 0x05 ,
  SUBQUERY_POSTFIX = 0x06
}
 Enumeration for {Item,Query_block[_UNIT],Table_function}walk. More...
 
enum class  enum_condition_context { NEITHER , ANDS , ANDS_ORS }
 Enumeration for Query_block::condition_context. More...
 

Functions

enum_walk operator| (enum_walk lhs, enum_walk rhs)
 
bool operator& (enum_walk lhs, enum_walk rhs)
 

Variables

constexpr const int MAX_ALIAS_NAME {256}
 
constexpr const int MAX_FIELD_NAME {34}
 
constexpr const unsigned int MAX_KEY {MAX_INDEXES}
 
constexpr const unsigned int MAX_REF_PARTS {16}
 
constexpr const unsigned int MAX_KEY_LENGTH {3072}
 
constexpr const int MAX_FIELD_CHARLENGTH {255}
 
constexpr const int MAX_FIELD_VARCHARLENGTH {65535}
 
constexpr const unsigned int MAX_FIELD_BLOBLENGTH
 
constexpr const int CONVERT_IF_BIGGER_TO_BLOB {512}
 CHAR and VARCHAR fields longer than this number of characters are converted to BLOB. More...
 
constexpr const int MAX_FIELD_WIDTH {MAX_FIELD_CHARLENGTH * 3 + 1}
 Max column width + 1. More...
 
constexpr const int MAX_DATE_WIDTH {10}
 YYYY-MM-DD. More...
 
constexpr const int MAX_TIME_WIDTH {10}
 -838:59:59 More...
 
constexpr const int MAX_TIME_FULL_WIDTH {23}
 -DDDDDD HH:MM:SS. More...
 
constexpr const int MAX_DATETIME_FULL_WIDTH {29}
 YYYY-MM-DD HH:MM:SS. More...
 
constexpr const int MAX_DATETIME_WIDTH {19}
 YYYY-MM-DD HH:MM:SS. More...
 
constexpr const size_t MAX_TABLES_FOR_SIZE {sizeof(table_map) * 8}
 MAX_TABLES and xxx_TABLE_BIT are used in optimization of table factors and expressions, and in join plan generation. More...
 
constexpr const size_t MAX_TABLES {MAX_TABLES_FOR_SIZE - 3}
 Max tables in join. More...
 
constexpr const table_map INNER_TABLE_BIT {1ULL << (MAX_TABLES + 0)}
 
constexpr const table_map OUTER_REF_TABLE_BIT {1ULL << (MAX_TABLES + 1)}
 
constexpr const table_map RAND_TABLE_BIT {1ULL << (MAX_TABLES + 2)}
 
constexpr const table_map PSEUDO_TABLE_BITS
 
constexpr const int MAX_FIELDS {4096}
 Maximum number of columns. More...
 
constexpr const int MAX_PARTITIONS {8192}
 
constexpr const int MAX_INTERVAL_VALUE_LENGTH {255}
 Max length of enum/set values. More...
 
constexpr const size_t MIN_SORT_MEMORY {32 * 1024}
 
constexpr const size_t STRING_BUFFER_USUAL_SIZE {80}
 
constexpr const size_t MEM_ROOT_BLOCK_SIZE {8192}
 Memory allocated when parsing a statement. More...
 
constexpr const int CREATE_MODE {0}
 Default mode on new files. More...
 
constexpr const size_t MAX_PASSWORD_LENGTH {32}
 
constexpr const long STACK_MIN_SIZE {20000}
 Stack reservation. More...
 
constexpr const int STACK_BUFF_ALLOC {352}
 For stack overrun checks. More...
 
constexpr const size_t ACL_ALLOC_BLOCK_SIZE {1024}
 
constexpr const size_t TABLE_ALLOC_BLOCK_SIZE {1024}
 
constexpr const int PRECISION_FOR_DOUBLE {53}
 
constexpr const int PRECISION_FOR_FLOAT {24}
 
constexpr const int MAX_FLOAT_STR_LENGTH {FLT_DIG + 6}
 -[digits].E+## More...
 
constexpr const int MAX_DOUBLE_STR_LENGTH {DBL_DIG + 7}
 -[digits].E+### More...
 
constexpr const unsigned long LONG_TIMEOUT {3600 * 24 * 365}
 
constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_PREPARE {1}
 Don't evaluate this subquery during statement prepare even if it's a constant one. More...
 
constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_VIEW {2}
 Special Query_block::prepare mode: changing of query is prohibited. More...
 
constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_DERIVED {4}
 Don't evaluate this subquery during derived table prepare even if it's a constant one. More...
 
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE {1ULL << 0}
 @optimizer_switch flags. More...
 
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_UNION {1ULL << 1}
 
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_SORT_UNION {1ULL << 2}
 
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_INTERSECT {1ULL << 3}
 
constexpr const uint64_t OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN {1ULL << 4}
 
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_CONDITION_PUSHDOWN {1ULL << 5}
 
constexpr const uint64_t OPTIMIZER_SWITCH_MRR {1ULL << 6}
 If this is off, MRR is never used. More...
 
constexpr const uint64_t OPTIMIZER_SWITCH_MRR_COST_BASED {1ULL << 7}
 If OPTIMIZER_SWITCH_MRR is on and this is on, MRR is used depending on a cost-based choice ("automatic"). More...
 
constexpr const uint64_t OPTIMIZER_SWITCH_BNL {1ULL << 8}
 
constexpr const uint64_t OPTIMIZER_SWITCH_BKA {1ULL << 9}
 
constexpr const uint64_t OPTIMIZER_SWITCH_MATERIALIZATION {1ULL << 10}
 
constexpr const uint64_t OPTIMIZER_SWITCH_SEMIJOIN {1ULL << 11}
 
constexpr const uint64_t OPTIMIZER_SWITCH_LOOSE_SCAN {1ULL << 12}
 
constexpr const uint64_t OPTIMIZER_SWITCH_FIRSTMATCH {1ULL << 13}
 
constexpr const uint64_t OPTIMIZER_SWITCH_DUPSWEEDOUT {1ULL << 14}
 
constexpr const uint64_t OPTIMIZER_SWITCH_SUBQ_MAT_COST_BASED {1ULL << 15}
 
constexpr const uint64_t OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS {1ULL << 16}
 
constexpr const uint64_t OPTIMIZER_SWITCH_COND_FANOUT_FILTER {1ULL << 17}
 
constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_MERGE {1ULL << 18}
 
constexpr const uint64_t OPTIMIZER_SWITCH_USE_INVISIBLE_INDEXES {1ULL << 19}
 
constexpr const uint64_t OPTIMIZER_SKIP_SCAN {1ULL << 20}
 
constexpr const uint64_t OPTIMIZER_SWITCH_HASH_JOIN {1ULL << 21}
 
constexpr const uint64_t OPTIMIZER_SWITCH_SUBQUERY_TO_DERIVED {1ULL << 22}
 
constexpr const uint64_t OPTIMIZER_SWITCH_PREFER_ORDERING_INDEX {1ULL << 23}
 
constexpr const uint64_t OPTIMIZER_SWITCH_HYPERGRAPH_OPTIMIZER {1ULL << 24}
 
constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_CONDITION_PUSHDOWN
 
constexpr const uint64_t OPTIMIZER_SWITCH_LAST {1ULL << 26}
 
constexpr const int MYSQLD_SUCCESS_EXIT {0}
 Exit code used by mysqld_exit, exit and _exit function to indicate successful termination of mysqld. More...
 
constexpr const int MYSQLD_ABORT_EXIT {1}
 Exit code used by mysqld_exit, exit and _exit function to signify unsuccessful termination of mysqld. More...
 
constexpr const int MYSQLD_FAILURE_EXIT {2}
 Exit code used by mysqld_exit, exit and _exit function to signify unsuccessful termination of mysqld. More...
 
constexpr const int MYSQLD_RESTART_EXIT {16}
 Exit code used by mysqld_exit, my_thread_exit function which allows for external programs like systemd, mysqld_safe to restart mysqld server. More...
 
constexpr const size_t UUID_LENGTH {8 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 12}
 

Detailed Description

File containing constants that can be used throughout the server.

Note
This file shall not contain any includes of sql/xxx.h files.

Macro Definition Documentation

◆ MAX_TIME_ZONE_NAME_LENGTH

#define MAX_TIME_ZONE_NAME_LENGTH   (NAME_LEN + 1)

Maximum length of time zone name that we support (Time zone name is char(64) in db).

mysqlbinlog needs it.

◆ SYNTHETIC_FIELD_NAME

#define SYNTHETIC_FIELD_NAME   "Name_exp_"

Used to uniquely name expressions in derived tables.

Typedef Documentation

◆ Item_processor

using Item_processor = bool (Item::*)(unsigned char *)

Processor type for {Item,Query_block[_UNIT],Table_function}walk.

Enumeration Type Documentation

◆ enum_condition_context

enum class enum_condition_context
strong

Enumeration for Query_block::condition_context.

If the expression being resolved belongs to a condition clause (WHERE, etc), it is connected to the clause's root through a chain of Items; tells if this chain matches ^(AND)*$ ("is top-level"), ^(AND|OR)*$, or neither.

Enumerator
NEITHER 
ANDS 
ANDS_ORS 

◆ enum_mark_columns

Enumerator
MARK_COLUMNS_NONE 
MARK_COLUMNS_READ 
MARK_COLUMNS_WRITE 
MARK_COLUMNS_TEMP 

◆ enum_resolution_type

This enumeration type is used only by the function find_item_in_list to return the info on how an item has been resolved against a list of possibly aliased items.

The item can be resolved:

  • against an alias name of the list's element (RESOLVED_AGAINST_ALIAS)
  • against non-aliased field name of the list (RESOLVED_WITH_NO_ALIAS)
  • against an aliased field name of the list (RESOLVED_BEHIND_ALIAS)
  • ignoring the alias name in cases when SQL requires to ignore aliases (e.g. when the resolved field reference contains a table name or when the resolved item is an expression) (RESOLVED_IGNORING_ALIAS)
Enumerator
NOT_RESOLVED 
RESOLVED_BEHIND_ALIAS 
RESOLVED_AGAINST_ALIAS 
RESOLVED_WITH_NO_ALIAS 
RESOLVED_IGNORING_ALIAS 

◆ enum_walk

enum class enum_walk
strong

Enumeration for {Item,Query_block[_UNIT],Table_function}walk.

Enumerator
PREFIX 
POSTFIX 
SUBQUERY 
SUBQUERY_PREFIX 
SUBQUERY_POSTFIX 

◆ SHOW_COMP_OPTION

Enumerator
SHOW_OPTION_YES 
SHOW_OPTION_NO 
SHOW_OPTION_DISABLED 

Function Documentation

◆ operator&()

bool operator& ( enum_walk  lhs,
enum_walk  rhs 
)
inline

◆ operator|()

enum_walk operator| ( enum_walk  lhs,
enum_walk  rhs 
)
inline

Variable Documentation

◆ ACL_ALLOC_BLOCK_SIZE

constexpr const size_t ACL_ALLOC_BLOCK_SIZE {1024}
constexpr

◆ CONTEXT_ANALYSIS_ONLY_DERIVED

constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_DERIVED {4}
constexpr

Don't evaluate this subquery during derived table prepare even if it's a constant one.

◆ CONTEXT_ANALYSIS_ONLY_PREPARE

constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_PREPARE {1}
constexpr

Don't evaluate this subquery during statement prepare even if it's a constant one.

The flag is switched off in the end of mysqld_stmt_prepare.

◆ CONTEXT_ANALYSIS_ONLY_VIEW

constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_VIEW {2}
constexpr

Special Query_block::prepare mode: changing of query is prohibited.

When creating a view, we need to just check its syntax omitting any optimizations: afterwards definition of the view will be reconstructed by means of print() methods and written to to an .frm file. We need this definition to stay untouched.

◆ CONVERT_IF_BIGGER_TO_BLOB

constexpr const int CONVERT_IF_BIGGER_TO_BLOB {512}
constexpr

CHAR and VARCHAR fields longer than this number of characters are converted to BLOB.

Non-character fields longer than this number of bytes are converted to BLOB. Comparisons should be '>' or '<='.

◆ CREATE_MODE

constexpr const int CREATE_MODE {0}
constexpr

Default mode on new files.

◆ INNER_TABLE_BIT

constexpr const table_map INNER_TABLE_BIT {1ULL << (MAX_TABLES + 0)}
constexpr

◆ LONG_TIMEOUT

constexpr const unsigned long LONG_TIMEOUT {3600 * 24 * 365}
constexpr

◆ MAX_ALIAS_NAME

constexpr const int MAX_ALIAS_NAME {256}
constexpr

◆ MAX_DATE_WIDTH

constexpr const int MAX_DATE_WIDTH {10}
constexpr

YYYY-MM-DD.

◆ MAX_DATETIME_FULL_WIDTH

constexpr const int MAX_DATETIME_FULL_WIDTH {29}
constexpr

YYYY-MM-DD HH:MM:SS.

###### AM

◆ MAX_DATETIME_WIDTH

constexpr const int MAX_DATETIME_WIDTH {19}
constexpr

YYYY-MM-DD HH:MM:SS.

◆ MAX_DOUBLE_STR_LENGTH

constexpr const int MAX_DOUBLE_STR_LENGTH {DBL_DIG + 7}
constexpr

-[digits].E+###

◆ MAX_FIELD_BLOBLENGTH

constexpr const unsigned int MAX_FIELD_BLOBLENGTH
constexpr
Initial value:
{
std::numeric_limits<uint32_t>::max()}

◆ MAX_FIELD_CHARLENGTH

constexpr const int MAX_FIELD_CHARLENGTH {255}
constexpr

◆ MAX_FIELD_NAME

constexpr const int MAX_FIELD_NAME {34}
constexpr

◆ MAX_FIELD_VARCHARLENGTH

constexpr const int MAX_FIELD_VARCHARLENGTH {65535}
constexpr

◆ MAX_FIELD_WIDTH

constexpr const int MAX_FIELD_WIDTH {MAX_FIELD_CHARLENGTH * 3 + 1}
constexpr

Max column width + 1.

3 is mbmaxlen for utf8mb3

◆ MAX_FIELDS

constexpr const int MAX_FIELDS {4096}
constexpr

Maximum number of columns.

◆ MAX_FLOAT_STR_LENGTH

constexpr const int MAX_FLOAT_STR_LENGTH {FLT_DIG + 6}
constexpr

-[digits].E+##

◆ MAX_INTERVAL_VALUE_LENGTH

constexpr const int MAX_INTERVAL_VALUE_LENGTH {255}
constexpr

Max length of enum/set values.

◆ MAX_KEY

constexpr const unsigned int MAX_KEY {MAX_INDEXES}
constexpr

◆ MAX_KEY_LENGTH

constexpr const unsigned int MAX_KEY_LENGTH {3072}
constexpr

◆ MAX_PARTITIONS

constexpr const int MAX_PARTITIONS {8192}
constexpr

◆ MAX_PASSWORD_LENGTH

constexpr const size_t MAX_PASSWORD_LENGTH {32}
constexpr

◆ MAX_REF_PARTS

constexpr const unsigned int MAX_REF_PARTS {16}
constexpr

◆ MAX_TABLES

constexpr const size_t MAX_TABLES {MAX_TABLES_FOR_SIZE - 3}
constexpr

Max tables in join.

◆ MAX_TABLES_FOR_SIZE

constexpr const size_t MAX_TABLES_FOR_SIZE {sizeof(table_map) * 8}
constexpr

MAX_TABLES and xxx_TABLE_BIT are used in optimization of table factors and expressions, and in join plan generation.

MAX_TABLES counts the maximum number of tables that can be handled in a join operation. It is the number of bits in the table_map, minus the number of pseudo table bits (bits that do not represent actual tables, but still need to be handled by our algorithms). The pseudo table bits are: INNER_TABLE_BIT is set for all expressions that contain a parameter, a subquery that accesses tables, or a function that accesses tables. An expression that has only INNER_TABLE_BIT is constant for the duration of a query expression, but must be evaluated at least once during execution. OUTER_REF_TABLE_BIT is set for expressions that contain a column that is resolved as an outer reference. Also notice that all subquery items between the column reference and the query block where the column is resolved, have this bit set. Expressions that are represented by this bit are constant for the duration of the subquery they are defined in. RAND_TABLE_BIT is set for expressions containing a non-deterministic element, such as a random function or a non-deterministic function. Expressions containing this bit cannot be evaluated once and then cached, they must be evaluated at latest possible point. RAND_TABLE_BIT is also piggy-backed to avoid moving Item_func_reject_if from its join condition. This usage is similar to its use by Item_is_not_null_test. MAX_TABLES_FOR_SIZE adds the pseudo bits and is used for sizing purposes only. Use for sizing ONLY

◆ MAX_TIME_FULL_WIDTH

constexpr const int MAX_TIME_FULL_WIDTH {23}
constexpr

-DDDDDD HH:MM:SS.

######

◆ MAX_TIME_WIDTH

constexpr const int MAX_TIME_WIDTH {10}
constexpr

-838:59:59

◆ MEM_ROOT_BLOCK_SIZE

constexpr const size_t MEM_ROOT_BLOCK_SIZE {8192}
constexpr

Memory allocated when parsing a statement.

◆ MIN_SORT_MEMORY

constexpr const size_t MIN_SORT_MEMORY {32 * 1024}
constexpr

◆ MYSQLD_ABORT_EXIT

constexpr const int MYSQLD_ABORT_EXIT {1}
constexpr

Exit code used by mysqld_exit, exit and _exit function to signify unsuccessful termination of mysqld.

The exit code signifies the server should NOT BE RESTARTED AUTOMATICALLY by init systems like systemd.

◆ MYSQLD_FAILURE_EXIT

constexpr const int MYSQLD_FAILURE_EXIT {2}
constexpr

Exit code used by mysqld_exit, exit and _exit function to signify unsuccessful termination of mysqld.

The exit code signifies the server should be RESTARTED AUTOMATICALLY by init systems like systemd.

◆ MYSQLD_RESTART_EXIT

constexpr const int MYSQLD_RESTART_EXIT {16}
constexpr

Exit code used by mysqld_exit, my_thread_exit function which allows for external programs like systemd, mysqld_safe to restart mysqld server.

The exit code 16 is chosen so it is safe as InnoDB code exit directly with values like 3.

◆ MYSQLD_SUCCESS_EXIT

constexpr const int MYSQLD_SUCCESS_EXIT {0}
constexpr

Exit code used by mysqld_exit, exit and _exit function to indicate successful termination of mysqld.

◆ OPTIMIZER_SKIP_SCAN

constexpr const uint64_t OPTIMIZER_SKIP_SCAN {1ULL << 20}
constexpr

◆ OPTIMIZER_SWITCH_BKA

constexpr const uint64_t OPTIMIZER_SWITCH_BKA {1ULL << 9}
constexpr

◆ OPTIMIZER_SWITCH_BNL

constexpr const uint64_t OPTIMIZER_SWITCH_BNL {1ULL << 8}
constexpr

◆ OPTIMIZER_SWITCH_COND_FANOUT_FILTER

constexpr const uint64_t OPTIMIZER_SWITCH_COND_FANOUT_FILTER {1ULL << 17}
constexpr

◆ OPTIMIZER_SWITCH_DERIVED_CONDITION_PUSHDOWN

constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_CONDITION_PUSHDOWN
constexpr
Initial value:
{1ULL
<< 25}

◆ OPTIMIZER_SWITCH_DERIVED_MERGE

constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_MERGE {1ULL << 18}
constexpr

◆ OPTIMIZER_SWITCH_DUPSWEEDOUT

constexpr const uint64_t OPTIMIZER_SWITCH_DUPSWEEDOUT {1ULL << 14}
constexpr

◆ OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN

constexpr const uint64_t OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN {1ULL << 4}
constexpr

◆ OPTIMIZER_SWITCH_FIRSTMATCH

constexpr const uint64_t OPTIMIZER_SWITCH_FIRSTMATCH {1ULL << 13}
constexpr

◆ OPTIMIZER_SWITCH_HASH_JOIN

constexpr const uint64_t OPTIMIZER_SWITCH_HASH_JOIN {1ULL << 21}
constexpr

◆ OPTIMIZER_SWITCH_HYPERGRAPH_OPTIMIZER

constexpr const uint64_t OPTIMIZER_SWITCH_HYPERGRAPH_OPTIMIZER {1ULL << 24}
constexpr

◆ OPTIMIZER_SWITCH_INDEX_CONDITION_PUSHDOWN

constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_CONDITION_PUSHDOWN {1ULL << 5}
constexpr

◆ OPTIMIZER_SWITCH_INDEX_MERGE

constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE {1ULL << 0}
constexpr

@optimizer_switch flags.

These must be in sync with optimizer_switch_typelib

◆ OPTIMIZER_SWITCH_INDEX_MERGE_INTERSECT

constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_INTERSECT {1ULL << 3}
constexpr

◆ OPTIMIZER_SWITCH_INDEX_MERGE_SORT_UNION

constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_SORT_UNION {1ULL << 2}
constexpr

◆ OPTIMIZER_SWITCH_INDEX_MERGE_UNION

constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_UNION {1ULL << 1}
constexpr

◆ OPTIMIZER_SWITCH_LAST

constexpr const uint64_t OPTIMIZER_SWITCH_LAST {1ULL << 26}
constexpr

◆ OPTIMIZER_SWITCH_LOOSE_SCAN

constexpr const uint64_t OPTIMIZER_SWITCH_LOOSE_SCAN {1ULL << 12}
constexpr

◆ OPTIMIZER_SWITCH_MATERIALIZATION

constexpr const uint64_t OPTIMIZER_SWITCH_MATERIALIZATION {1ULL << 10}
constexpr

◆ OPTIMIZER_SWITCH_MRR

constexpr const uint64_t OPTIMIZER_SWITCH_MRR {1ULL << 6}
constexpr

If this is off, MRR is never used.

◆ OPTIMIZER_SWITCH_MRR_COST_BASED

constexpr const uint64_t OPTIMIZER_SWITCH_MRR_COST_BASED {1ULL << 7}
constexpr

If OPTIMIZER_SWITCH_MRR is on and this is on, MRR is used depending on a cost-based choice ("automatic").

If OPTIMIZER_SWITCH_MRR is on and this is off, MRR is "forced" (i.e. used as long as the storage engine is capable of doing it).

◆ OPTIMIZER_SWITCH_PREFER_ORDERING_INDEX

constexpr const uint64_t OPTIMIZER_SWITCH_PREFER_ORDERING_INDEX {1ULL << 23}
constexpr

◆ OPTIMIZER_SWITCH_SEMIJOIN

constexpr const uint64_t OPTIMIZER_SWITCH_SEMIJOIN {1ULL << 11}
constexpr

◆ OPTIMIZER_SWITCH_SUBQ_MAT_COST_BASED

constexpr const uint64_t OPTIMIZER_SWITCH_SUBQ_MAT_COST_BASED {1ULL << 15}
constexpr

◆ OPTIMIZER_SWITCH_SUBQUERY_TO_DERIVED

constexpr const uint64_t OPTIMIZER_SWITCH_SUBQUERY_TO_DERIVED {1ULL << 22}
constexpr

◆ OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS

constexpr const uint64_t OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS {1ULL << 16}
constexpr

◆ OPTIMIZER_SWITCH_USE_INVISIBLE_INDEXES

constexpr const uint64_t OPTIMIZER_SWITCH_USE_INVISIBLE_INDEXES {1ULL << 19}
constexpr

◆ OUTER_REF_TABLE_BIT

constexpr const table_map OUTER_REF_TABLE_BIT {1ULL << (MAX_TABLES + 1)}
constexpr

◆ PRECISION_FOR_DOUBLE

constexpr const int PRECISION_FOR_DOUBLE {53}
constexpr

◆ PRECISION_FOR_FLOAT

constexpr const int PRECISION_FOR_FLOAT {24}
constexpr

◆ PSEUDO_TABLE_BITS

constexpr const table_map PSEUDO_TABLE_BITS
constexpr
Initial value:
{
constexpr const table_map RAND_TABLE_BIT
Definition: sql_const.h:111
constexpr const table_map OUTER_REF_TABLE_BIT
Definition: sql_const.h:110
constexpr const table_map INNER_TABLE_BIT
Definition: sql_const.h:109

◆ RAND_TABLE_BIT

constexpr const table_map RAND_TABLE_BIT {1ULL << (MAX_TABLES + 2)}
constexpr

◆ STACK_BUFF_ALLOC

constexpr const int STACK_BUFF_ALLOC {352}
constexpr

For stack overrun checks.

◆ STACK_MIN_SIZE

constexpr const long STACK_MIN_SIZE {20000}
constexpr

Stack reservation.

Feel free to raise this by the smallest amount you can to get the "execution_constants" test to pass.

◆ STRING_BUFFER_USUAL_SIZE

constexpr const size_t STRING_BUFFER_USUAL_SIZE {80}
constexpr

◆ TABLE_ALLOC_BLOCK_SIZE

constexpr const size_t TABLE_ALLOC_BLOCK_SIZE {1024}
constexpr

◆ UUID_LENGTH

constexpr const size_t UUID_LENGTH {8 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 12}
constexpr