MySQL 8.0.29
Source Code Documentation
sql_const.h
Go to the documentation of this file.
1/* Copyright (c) 2006, 2022, 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 also distributed 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 included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23/**
24 @file
25 File containing constants that can be used throughout the server.
26
27 @note This file shall not contain any includes of sql/xxx.h files.
28*/
29
30#ifndef SQL_CONST_INCLUDED
31#define SQL_CONST_INCLUDED
32
33#include <float.h>
34#include <stddef.h>
35#include <stdint.h>
36
37#include <limits>
38
39#include "my_config.h" // MAX_INDEXES
40#include "my_table_map.h" // table_map
41
42constexpr const int MAX_ALIAS_NAME{256};
43constexpr const int MAX_FIELD_NAME{34}; /* Max colum name length +2 */
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 is also piggy-backed to avoid moving Item_func_reject_if
99 from its join condition. This usage is similar to its use by
100 Item_is_not_null_test.
101 MAX_TABLES_FOR_SIZE adds the pseudo bits and is used for sizing purposes only.
102*/
103/** Use for sizing ONLY */
104constexpr const size_t MAX_TABLES_FOR_SIZE{sizeof(table_map) * 8};
105
106/** Max tables in join */
107constexpr const size_t MAX_TABLES{MAX_TABLES_FOR_SIZE - 3};
108
109constexpr const table_map INNER_TABLE_BIT{1ULL << (MAX_TABLES + 0)};
110constexpr const table_map OUTER_REF_TABLE_BIT{1ULL << (MAX_TABLES + 1)};
111constexpr const table_map RAND_TABLE_BIT{1ULL << (MAX_TABLES + 2)};
114
115/** Maximum number of columns */
116constexpr const int MAX_FIELDS{4096};
117constexpr const int MAX_PARTITIONS{8192};
118
119/** Max length of enum/set values */
120constexpr const int MAX_INTERVAL_VALUE_LENGTH{255};
121
122constexpr const size_t MIN_SORT_MEMORY{32 * 1024};
123
124constexpr const size_t STRING_BUFFER_USUAL_SIZE{80};
125
126/** Memory allocated when parsing a statement */
127constexpr const size_t MEM_ROOT_BLOCK_SIZE{8192};
128
129/** Default mode on new files */
130constexpr const int CREATE_MODE{0};
131
132constexpr const size_t MAX_PASSWORD_LENGTH{32};
133
134/**
135 Stack reservation.
136 Feel free to raise this by the smallest amount you can to get the
137 "execution_constants" test to pass.
138*/
139#if defined HAVE_UBSAN && SIZEOF_CHARP == 4
140constexpr const long STACK_MIN_SIZE{30000}; // Abort if less stack during eval.
141#else
142constexpr const long STACK_MIN_SIZE{20000}; // Abort if less stack during eval.
143#endif
144
145constexpr const int STACK_BUFF_ALLOC{352}; ///< For stack overrun checks
146
147constexpr const size_t ACL_ALLOC_BLOCK_SIZE{1024};
148constexpr const size_t TABLE_ALLOC_BLOCK_SIZE{1024};
149
150constexpr const int PRECISION_FOR_DOUBLE{53};
151constexpr const int PRECISION_FOR_FLOAT{24};
152
153/** -[digits].E+## */
154constexpr const int MAX_FLOAT_STR_LENGTH{FLT_DIG + 6};
155/** -[digits].E+### */
156constexpr const int MAX_DOUBLE_STR_LENGTH{DBL_DIG + 7};
157
158constexpr const unsigned long LONG_TIMEOUT{3600 * 24 * 365};
159
160/**
161 Maximum length of time zone name that we support (Time zone name is
162 char(64) in db). mysqlbinlog needs it.
163*/
164#define MAX_TIME_ZONE_NAME_LENGTH (NAME_LEN + 1)
165
166/*
167 Flags below are set when we perform
168 context analysis of the statement and make
169 subqueries non-const. It prevents subquery
170 evaluation at context analysis stage.
171*/
172
173/**
174 Don't evaluate this subquery during statement prepare even if
175 it's a constant one. The flag is switched off in the end of
176 mysqld_stmt_prepare.
177*/
178constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_PREPARE{1};
179/**
180 Special Query_block::prepare mode: changing of query is prohibited.
181 When creating a view, we need to just check its syntax omitting
182 any optimizations: afterwards definition of the view will be
183 reconstructed by means of ::print() methods and written to
184 to an .frm file. We need this definition to stay untouched.
185*/
186constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_VIEW{2};
187/**
188 Don't evaluate this subquery during derived table prepare even if
189 it's a constant one.
190*/
191constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_DERIVED{4};
192
193/**
194 @@optimizer_switch flags.
195 These must be in sync with optimizer_switch_typelib
196 */
197constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE{1ULL << 0};
198constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_UNION{1ULL << 1};
199constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_SORT_UNION{1ULL << 2};
200constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_INTERSECT{1ULL << 3};
201constexpr const uint64_t OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN{1ULL << 4};
202constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_CONDITION_PUSHDOWN{1ULL << 5};
203/** If this is off, MRR is never used. */
204constexpr const uint64_t OPTIMIZER_SWITCH_MRR{1ULL << 6};
205/**
206 If OPTIMIZER_SWITCH_MRR is on and this is on, MRR is used depending on a
207 cost-based choice ("automatic"). If OPTIMIZER_SWITCH_MRR is on and this is
208 off, MRR is "forced" (i.e. used as long as the storage engine is capable of
209 doing it).
210*/
211constexpr const uint64_t OPTIMIZER_SWITCH_MRR_COST_BASED{1ULL << 7};
212constexpr const uint64_t OPTIMIZER_SWITCH_BNL{1ULL << 8};
213constexpr const uint64_t OPTIMIZER_SWITCH_BKA{1ULL << 9};
214constexpr const uint64_t OPTIMIZER_SWITCH_MATERIALIZATION{1ULL << 10};
215constexpr const uint64_t OPTIMIZER_SWITCH_SEMIJOIN{1ULL << 11};
216constexpr const uint64_t OPTIMIZER_SWITCH_LOOSE_SCAN{1ULL << 12};
217constexpr const uint64_t OPTIMIZER_SWITCH_FIRSTMATCH{1ULL << 13};
218constexpr const uint64_t OPTIMIZER_SWITCH_DUPSWEEDOUT{1ULL << 14};
219constexpr const uint64_t OPTIMIZER_SWITCH_SUBQ_MAT_COST_BASED{1ULL << 15};
220constexpr const uint64_t OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS{1ULL << 16};
221constexpr const uint64_t OPTIMIZER_SWITCH_COND_FANOUT_FILTER{1ULL << 17};
222constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_MERGE{1ULL << 18};
223constexpr const uint64_t OPTIMIZER_SWITCH_USE_INVISIBLE_INDEXES{1ULL << 19};
224constexpr const uint64_t OPTIMIZER_SKIP_SCAN{1ULL << 20};
225constexpr const uint64_t OPTIMIZER_SWITCH_HASH_JOIN{1ULL << 21};
226constexpr const uint64_t OPTIMIZER_SWITCH_SUBQUERY_TO_DERIVED{1ULL << 22};
227constexpr const uint64_t OPTIMIZER_SWITCH_PREFER_ORDERING_INDEX{1ULL << 23};
228constexpr const uint64_t OPTIMIZER_SWITCH_HYPERGRAPH_OPTIMIZER{1ULL << 24};
230 << 25};
231constexpr const uint64_t OPTIMIZER_SWITCH_LAST{1ULL << 26};
232
234
241
242/**
243 Exit code used by mysqld_exit, exit and _exit function
244 to indicate successful termination of mysqld.
245*/
246constexpr const int MYSQLD_SUCCESS_EXIT{0};
247/**
248 Exit code used by mysqld_exit, exit and _exit function to
249 signify unsuccessful termination of mysqld. The exit
250 code signifies the server should NOT BE RESTARTED AUTOMATICALLY
251 by init systems like systemd.
252*/
253constexpr const int MYSQLD_ABORT_EXIT{1};
254/**
255 Exit code used by mysqld_exit, exit and _exit function to
256 signify unsuccessful termination of mysqld. The exit code
257 signifies the server should be RESTARTED AUTOMATICALLY by
258 init systems like systemd.
259*/
260constexpr const int MYSQLD_FAILURE_EXIT{2};
261/**
262 Exit code used by mysqld_exit, my_thread_exit function which allows
263 for external programs like systemd, mysqld_safe to restart mysqld
264 server. The exit code 16 is choosen so it is safe as InnoDB code
265 exit directly with values like 3.
266*/
267constexpr const int MYSQLD_RESTART_EXIT{16};
268
269constexpr const size_t UUID_LENGTH{8 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 12};
270
271/**
272 This enumeration type is used only by the function find_item_in_list
273 to return the info on how an item has been resolved against a list
274 of possibly aliased items.
275 The item can be resolved:
276 - against an alias name of the list's element (RESOLVED_AGAINST_ALIAS)
277 - against non-aliased field name of the list (RESOLVED_WITH_NO_ALIAS)
278 - against an aliased field name of the list (RESOLVED_BEHIND_ALIAS)
279 - ignoring the alias name in cases when SQL requires to ignore aliases
280 (e.g. when the resolved field reference contains a table name or
281 when the resolved item is an expression) (RESOLVED_IGNORING_ALIAS)
282*/
290
291/// Enumeration for {Item,Query_block[_UNIT],Table_function}::walk
292enum class enum_walk {
293 PREFIX = 0x01,
294 POSTFIX = 0x02,
295 SUBQUERY = 0x04,
296 SUBQUERY_PREFIX = 0x05, // Combine prefix and subquery traversal
297 SUBQUERY_POSTFIX = 0x06 // Combine postfix and subquery traversal
298};
299
301 return enum_walk(int(lhs) | int(rhs));
302}
303
304inline bool operator&(enum_walk lhs, enum_walk rhs) {
305 return (int(lhs) & int(rhs)) != 0;
306}
307
308class Item;
309/// Processor type for {Item,Query_block[_UNIT],Table_function}::walk
310using Item_processor = bool (Item::*)(unsigned char *);
311
312/// Enumeration for Query_block::condition_context.
313/// If the expression being resolved belongs to a condition clause (WHERE, etc),
314/// it is connected to the clause's root through a chain of Items; tells if this
315/// chain matches ^(AND)*$ ("is top-level"), ^(AND|OR)*$, or neither.
317 NEITHER,
318 ANDS,
319 ANDS_ORS,
320};
321
322/// Used to uniquely name expressions in derived tables
323#define SYNTHETIC_FIELD_NAME "Name_exp_"
324#endif /* SQL_CONST_INCLUDED */
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:802
#define MAX_INDEXES
Definition: config.h:209
uint64_t table_map
Definition: my_table_map.h:29
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:233
@ SHOW_OPTION_DISABLED
Definition: sql_const.h:233
@ SHOW_OPTION_YES
Definition: sql_const.h:233
@ SHOW_OPTION_NO
Definition: sql_const.h:233
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:222
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:269
constexpr const uint64_t OPTIMIZER_SWITCH_HYPERGRAPH_OPTIMIZER
Definition: sql_const.h:228
constexpr const uint64_t OPTIMIZER_SWITCH_MRR
If this is off, MRR is never used.
Definition: sql_const.h:204
constexpr const uint64_t OPTIMIZER_SWITCH_COND_FANOUT_FILTER
Definition: sql_const.h:221
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:211
constexpr const uint64_t OPTIMIZER_SWITCH_HASH_JOIN
Definition: sql_const.h:225
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:178
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:202
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:229
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:304
constexpr const uint64_t OPTIMIZER_SWITCH_BKA
Definition: sql_const.h:213
constexpr const uint64_t OPTIMIZER_SWITCH_MATERIALIZATION
Definition: sql_const.h:214
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_UNION
Definition: sql_const.h:198
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:223
enum_walk operator|(enum_walk lhs, enum_walk rhs)
Definition: sql_const.h:300
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:267
constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_INTERSECT
Definition: sql_const.h:200
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:283
@ NOT_RESOLVED
Definition: sql_const.h:284
@ RESOLVED_BEHIND_ALIAS
Definition: sql_const.h:285
@ RESOLVED_AGAINST_ALIAS
Definition: sql_const.h:286
@ RESOLVED_WITH_NO_ALIAS
Definition: sql_const.h:287
@ RESOLVED_IGNORING_ALIAS
Definition: sql_const.h:288
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:199
constexpr const uint64_t OPTIMIZER_SWITCH_SUBQUERY_TO_DERIVED
Definition: sql_const.h:226
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:191
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:216
constexpr const uint64_t OPTIMIZER_SWITCH_BNL
Definition: sql_const.h:212
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:246
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:253
constexpr const uint64_t OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS
Definition: sql_const.h:220
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:292
@ SUBQUERY_POSTFIX
constexpr const size_t ACL_ALLOC_BLOCK_SIZE
Definition: sql_const.h:147
constexpr const uint64_t OPTIMIZER_SWITCH_LAST
Definition: sql_const.h:231
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:260
constexpr const uint64_t OPTIMIZER_SWITCH_PREFER_ORDERING_INDEX
Definition: sql_const.h:227
constexpr const uint64_t OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN
Definition: sql_const.h:201
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:310
constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_VIEW
Special Query_block::prepare mode: changing of query is prohibited.
Definition: sql_const.h:186
constexpr const int PRECISION_FOR_DOUBLE
Definition: sql_const.h:150
constexpr const uint64_t OPTIMIZER_SWITCH_FIRSTMATCH
Definition: sql_const.h:217
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:218
enum_mark_columns
Definition: sql_const.h:235
@ MARK_COLUMNS_TEMP
Definition: sql_const.h:239
@ MARK_COLUMNS_READ
Definition: sql_const.h:237
@ MARK_COLUMNS_WRITE
Definition: sql_const.h:238
@ MARK_COLUMNS_NONE
Definition: sql_const.h:236
constexpr const int MAX_ALIAS_NAME
Definition: sql_const.h:42
constexpr const uint64_t OPTIMIZER_SWITCH_SEMIJOIN
Definition: sql_const.h:215
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 MAX_FIELD_NAME
Definition: sql_const.h:43
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:316
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:197
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:219
constexpr const uint64_t OPTIMIZER_SKIP_SCAN
Definition: sql_const.h:224