MySQL 9.1.0
Source Code Documentation
sql_const.h
Go to the documentation of this file.
1/* Copyright (c) 2006, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24/**
25 @file
26 File containing constants that can be used throughout the server.
27
28 @note This file shall not contain any includes of sql/xxx.h files.
29*/
30
31#ifndef SQL_CONST_INCLUDED
32#define SQL_CONST_INCLUDED
33
34#include <float.h>
35#include <stddef.h>
36#include <stdint.h>
37
38#include <limits>
39
40#include "my_config.h" // MAX_INDEXES
41#include "my_table_map.h" // table_map
42
43constexpr const int MAX_ALIAS_NAME{256};
44
45constexpr const unsigned int MAX_KEY{MAX_INDEXES}; /* Max used keys */
46constexpr const unsigned int MAX_REF_PARTS{16}; /* Max parts used as ref */
47constexpr const unsigned int MAX_KEY_LENGTH{3072}; /* max possible key */
48
49constexpr const int MAX_FIELD_CHARLENGTH{255};
50constexpr const int MAX_FIELD_VARCHARLENGTH{65535};
51
52/* cf Field_blob::get_length() */
53constexpr const unsigned int MAX_FIELD_BLOBLENGTH{
54 std::numeric_limits<uint32_t>::max()};
55
56/**
57 CHAR and VARCHAR fields longer than this number of characters are converted
58 to BLOB.
59 Non-character fields longer than this number of bytes are converted to BLOB.
60 Comparisons should be '>' or '<='.
61*/
62constexpr const int CONVERT_IF_BIGGER_TO_BLOB{512};
63
64/** Max column width + 1. 3 is mbmaxlen for utf8mb3 */
65constexpr const int MAX_FIELD_WIDTH{MAX_FIELD_CHARLENGTH * 3 + 1};
66
67/** YYYY-MM-DD */
68constexpr const int MAX_DATE_WIDTH{10};
69/** -838:59:59 */
70constexpr const int MAX_TIME_WIDTH{10};
71/** -DDDDDD HH:MM:SS.###### */
72constexpr const int MAX_TIME_FULL_WIDTH{23};
73/** YYYY-MM-DD HH:MM:SS.###### AM */
74constexpr const int MAX_DATETIME_FULL_WIDTH{29};
75/** YYYY-MM-DD HH:MM:SS */
76constexpr const int MAX_DATETIME_WIDTH{19};
77
78/**
79 MAX_TABLES and xxx_TABLE_BIT are used in optimization of table factors and
80 expressions, and in join plan generation.
81 MAX_TABLES counts the maximum number of tables that can be handled in a
82 join operation. It is the number of bits in the table_map, minus the
83 number of pseudo table bits (bits that do not represent actual tables, but
84 still need to be handled by our algorithms). The pseudo table bits are:
85 INNER_TABLE_BIT is set for all expressions that contain a parameter,
86 a subquery that accesses tables, or a function that accesses tables.
87 An expression that has only INNER_TABLE_BIT is constant for the duration
88 of a query expression, but must be evaluated at least once during execution.
89 OUTER_REF_TABLE_BIT is set for expressions that contain a column that
90 is resolved as an outer reference. Also notice that all subquery items
91 between the column reference and the query block where the column is
92 resolved, have this bit set. Expressions that are represented by this bit
93 are constant for the duration of the subquery they are defined in.
94 RAND_TABLE_BIT is set for expressions containing a non-deterministic
95 element, such as a random function or a non-deterministic function.
96 Expressions containing this bit cannot be evaluated once and then cached,
97 they must be evaluated at latest possible point.
98 RAND_TABLE_BIT may also be used to signal especially that a certain
99 expression is non-constant and cannot be optimized away.
100 E.g, RAND_TABLE_BIT is piggy-backed to avoid moving Item_func_reject_if
101 from its join condition. This usage is similar to its use by
102 Item_is_not_null_test.
103 MAX_TABLES_FOR_SIZE adds the pseudo bits and is used for sizing purposes only.
104*/
105/** Use for sizing ONLY */
106constexpr const size_t MAX_TABLES_FOR_SIZE{sizeof(table_map) * 8};
107
108/** Max tables in join */
109constexpr const size_t MAX_TABLES{MAX_TABLES_FOR_SIZE - 3};
110
111constexpr const table_map INNER_TABLE_BIT{1ULL << (MAX_TABLES + 0)};
112constexpr const table_map OUTER_REF_TABLE_BIT{1ULL << (MAX_TABLES + 1)};
113constexpr const table_map RAND_TABLE_BIT{1ULL << (MAX_TABLES + 2)};
116
117/** Maximum number of columns */
118constexpr const int MAX_FIELDS{4096};
119constexpr const int MAX_PARTITIONS{8192};
120
121/** Max length of enum/set values */
122constexpr const int MAX_INTERVAL_VALUE_LENGTH{255};
123
124constexpr const size_t MIN_SORT_MEMORY{32 * 1024};
125
126constexpr const size_t STRING_BUFFER_USUAL_SIZE{80};
127
128/** Memory allocated when parsing a statement */
129constexpr const size_t MEM_ROOT_BLOCK_SIZE{8192};
130
131/** Default mode on new files */
132constexpr const int CREATE_MODE{0};
133
134constexpr const size_t MAX_PASSWORD_LENGTH{32};
135
136/**
137 Stack reservation.
138 Feel free to raise this by the smallest amount you can to get the
139 "execution_constants" test to pass.
140*/
141#if defined HAVE_UBSAN && SIZEOF_CHARP == 4
142constexpr const long STACK_MIN_SIZE{30000}; // Abort if less stack during eval.
143#else
144constexpr const long STACK_MIN_SIZE{20000}; // Abort if less stack during eval.
145#endif
146
147constexpr const int STACK_BUFF_ALLOC{352}; ///< For stack overrun checks
148
149constexpr const size_t ACL_ALLOC_BLOCK_SIZE{1024};
150constexpr const size_t TABLE_ALLOC_BLOCK_SIZE{1024};
151
152constexpr const int PRECISION_FOR_DOUBLE{53};
153constexpr const int PRECISION_FOR_FLOAT{24};
154
155/** -[digits].E+## */
156constexpr const int MAX_FLOAT_STR_LENGTH{FLT_DIG + 6};
157/** -[digits].E+### */
158constexpr const int MAX_DOUBLE_STR_LENGTH{DBL_DIG + 7};
159
160constexpr const unsigned long LONG_TIMEOUT{3600 * 24 * 365};
161
162/*
163 Flags below are set when we perform
164 context analysis of the statement and make
165 subqueries non-const. It prevents subquery
166 evaluation at context analysis stage.
167*/
168
169/**
170 Don't evaluate this subquery during statement prepare even if
171 it's a constant one. The flag is switched off in the end of
172 mysqld_stmt_prepare.
173*/
174constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_PREPARE{1};
175/**
176 Special Query_block::prepare mode: changing of query is prohibited.
177 When creating a view, we need to just check its syntax omitting
178 any optimizations: afterwards definition of the view will be
179 reconstructed by means of ::print() methods and written to
180 to an .frm file. We need this definition to stay untouched.
181*/
182constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_VIEW{2};
183/**
184 Don't evaluate this subquery during derived table prepare even if
185 it's a constant one.
186*/
187constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_DERIVED{4};
188
189/**
190 @@optimizer_switch flags.
191 These must be in sync with optimizer_switch_typelib
192 */
193constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE{1ULL << 0};
194constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_UNION{1ULL << 1};
195constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_SORT_UNION{1ULL << 2};
196constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_INTERSECT{1ULL << 3};
197constexpr const uint64_t OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN{1ULL << 4};
198constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_CONDITION_PUSHDOWN{1ULL << 5};
199/** If this is off, MRR is never used. */
200constexpr const uint64_t OPTIMIZER_SWITCH_MRR{1ULL << 6};
201/**
202 If OPTIMIZER_SWITCH_MRR is on and this is on, MRR is used depending on a
203 cost-based choice ("automatic"). If OPTIMIZER_SWITCH_MRR is on and this is
204 off, MRR is "forced" (i.e. used as long as the storage engine is capable of
205 doing it).
206*/
207constexpr const uint64_t OPTIMIZER_SWITCH_MRR_COST_BASED{1ULL << 7};
208constexpr const uint64_t OPTIMIZER_SWITCH_BNL{1ULL << 8};
209constexpr const uint64_t OPTIMIZER_SWITCH_BKA{1ULL << 9};
210constexpr const uint64_t OPTIMIZER_SWITCH_MATERIALIZATION{1ULL << 10};
211constexpr const uint64_t OPTIMIZER_SWITCH_SEMIJOIN{1ULL << 11};
212constexpr const uint64_t OPTIMIZER_SWITCH_LOOSE_SCAN{1ULL << 12};
213constexpr const uint64_t OPTIMIZER_SWITCH_FIRSTMATCH{1ULL << 13};
214constexpr const uint64_t OPTIMIZER_SWITCH_DUPSWEEDOUT{1ULL << 14};
215constexpr const uint64_t OPTIMIZER_SWITCH_SUBQ_MAT_COST_BASED{1ULL << 15};
216constexpr const uint64_t OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS{1ULL << 16};
217constexpr const uint64_t OPTIMIZER_SWITCH_COND_FANOUT_FILTER{1ULL << 17};
218constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_MERGE{1ULL << 18};
219constexpr const uint64_t OPTIMIZER_SWITCH_USE_INVISIBLE_INDEXES{1ULL << 19};
220constexpr const uint64_t OPTIMIZER_SKIP_SCAN{1ULL << 20};
221constexpr const uint64_t OPTIMIZER_SWITCH_HASH_JOIN{1ULL << 21};
222constexpr const uint64_t OPTIMIZER_SWITCH_SUBQUERY_TO_DERIVED{1ULL << 22};
223constexpr const uint64_t OPTIMIZER_SWITCH_PREFER_ORDERING_INDEX{1ULL << 23};
224constexpr const uint64_t OPTIMIZER_SWITCH_HYPERGRAPH_OPTIMIZER{1ULL << 24};
226 << 25};
227constexpr const uint64_t OPTIMIZER_SWITCH_HASH_SET_OPERATIONS{1ULL << 26};
228constexpr const uint64_t OPTIMIZER_SWITCH_LAST{1ULL << 27};
229
231
238
239/**
240 Exit code used by mysqld_exit, exit and _exit function
241 to indicate successful termination of mysqld.
242*/
243constexpr const int MYSQLD_SUCCESS_EXIT{0};
244/**
245 Exit code used by mysqld_exit, exit and _exit function to
246 signify unsuccessful termination of mysqld. The exit
247 code signifies the server should NOT BE RESTARTED AUTOMATICALLY
248 by init systems like systemd.
249*/
250constexpr const int MYSQLD_ABORT_EXIT{1};
251/**
252 Exit code used by mysqld_exit, exit and _exit function to
253 signify unsuccessful termination of mysqld. The exit code
254 signifies the server should be RESTARTED AUTOMATICALLY by
255 init systems like systemd.
256*/
257constexpr const int MYSQLD_FAILURE_EXIT{2};
258/**
259 Exit code used by mysqld_exit, my_thread_exit function which allows
260 for external programs like systemd, mysqld_safe to restart mysqld
261 server. The exit code 16 is chosen so it is safe as InnoDB code
262 exit directly with values like 3.
263*/
264constexpr const int MYSQLD_RESTART_EXIT{16};
265
266constexpr const size_t UUID_LENGTH{8 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 12};
267
268/**
269 This enumeration type is used only by the function find_item_in_list
270 to return the info on how an item has been resolved against a list
271 of possibly aliased items.
272 The item can be resolved:
273 - against an alias name of the list's element (RESOLVED_AGAINST_ALIAS)
274 - against non-aliased field name of the list (RESOLVED_WITH_NO_ALIAS)
275 - against an aliased field name of the list (RESOLVED_BEHIND_ALIAS)
276 - ignoring the alias name in cases when SQL requires to ignore aliases
277 (e.g. when the resolved field reference contains a table name or
278 when the resolved item is an expression) (RESOLVED_IGNORING_ALIAS)
279*/
287
288/// Enumeration for {Item,Query_block[_UNIT],Table_function}::walk
289enum class enum_walk {
290 PREFIX = 0x01,
291 POSTFIX = 0x02,
292 SUBQUERY = 0x04,
293 SUBQUERY_PREFIX = 0x05, // Combine prefix and subquery traversal
294 SUBQUERY_POSTFIX = 0x06 // Combine postfix and subquery traversal
295};
296
298 return enum_walk(int(lhs) | int(rhs));
299}
300
301inline bool operator&(enum_walk lhs, enum_walk rhs) {
302 return (int(lhs) & int(rhs)) != 0;
303}
304
305class Item;
306/// Processor type for {Item,Query_block[_UNIT],Table_function}::walk
307using Item_processor = bool (Item::*)(unsigned char *);
308
309/// Enumeration for Query_block::condition_context.
310/// If the expression being resolved belongs to a condition clause (WHERE, etc),
311/// it is connected to the clause's root through a chain of Items; tells if this
312/// chain matches ^(AND)*$ ("is top-level"), ^(AND|OR)*$, or neither.
314 NEITHER,
315 ANDS,
316 ANDS_ORS,
317};
318
319/// Used to uniquely name expressions in derived tables
320#define SYNTHETIC_FIELD_NAME "Name_exp_"
321#endif /* SQL_CONST_INCLUDED */
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
@ SUBQUERY_POSTFIX
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