MySQL 8.0.40
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 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 Flags below are set when we perform
162 context analysis of the statement and make
163 subqueries non-const. It prevents subquery
164 evaluation at context analysis stage.
165*/
166
167/**
168 Don't evaluate this subquery during statement prepare even if
169 it's a constant one. The flag is switched off in the end of
170 mysqld_stmt_prepare.
171*/
172constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_PREPARE{1};
173/**
174 Special Query_block::prepare mode: changing of query is prohibited.
175 When creating a view, we need to just check its syntax omitting
176 any optimizations: afterwards definition of the view will be
177 reconstructed by means of ::print() methods and written to
178 to an .frm file. We need this definition to stay untouched.
179*/
180constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_VIEW{2};
181/**
182 Don't evaluate this subquery during derived table prepare even if
183 it's a constant one.
184*/
185constexpr const uint8_t CONTEXT_ANALYSIS_ONLY_DERIVED{4};
186
187/**
188 @@optimizer_switch flags.
189 These must be in sync with optimizer_switch_typelib
190 */
191constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE{1ULL << 0};
192constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_UNION{1ULL << 1};
193constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_SORT_UNION{1ULL << 2};
194constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_MERGE_INTERSECT{1ULL << 3};
195constexpr const uint64_t OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN{1ULL << 4};
196constexpr const uint64_t OPTIMIZER_SWITCH_INDEX_CONDITION_PUSHDOWN{1ULL << 5};
197/** If this is off, MRR is never used. */
198constexpr const uint64_t OPTIMIZER_SWITCH_MRR{1ULL << 6};
199/**
200 If OPTIMIZER_SWITCH_MRR is on and this is on, MRR is used depending on a
201 cost-based choice ("automatic"). If OPTIMIZER_SWITCH_MRR is on and this is
202 off, MRR is "forced" (i.e. used as long as the storage engine is capable of
203 doing it).
204*/
205constexpr const uint64_t OPTIMIZER_SWITCH_MRR_COST_BASED{1ULL << 7};
206constexpr const uint64_t OPTIMIZER_SWITCH_BNL{1ULL << 8};
207constexpr const uint64_t OPTIMIZER_SWITCH_BKA{1ULL << 9};
208constexpr const uint64_t OPTIMIZER_SWITCH_MATERIALIZATION{1ULL << 10};
209constexpr const uint64_t OPTIMIZER_SWITCH_SEMIJOIN{1ULL << 11};
210constexpr const uint64_t OPTIMIZER_SWITCH_LOOSE_SCAN{1ULL << 12};
211constexpr const uint64_t OPTIMIZER_SWITCH_FIRSTMATCH{1ULL << 13};
212constexpr const uint64_t OPTIMIZER_SWITCH_DUPSWEEDOUT{1ULL << 14};
213constexpr const uint64_t OPTIMIZER_SWITCH_SUBQ_MAT_COST_BASED{1ULL << 15};
214constexpr const uint64_t OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS{1ULL << 16};
215constexpr const uint64_t OPTIMIZER_SWITCH_COND_FANOUT_FILTER{1ULL << 17};
216constexpr const uint64_t OPTIMIZER_SWITCH_DERIVED_MERGE{1ULL << 18};
217constexpr const uint64_t OPTIMIZER_SWITCH_USE_INVISIBLE_INDEXES{1ULL << 19};
218constexpr const uint64_t OPTIMIZER_SKIP_SCAN{1ULL << 20};
219constexpr const uint64_t OPTIMIZER_SWITCH_HASH_JOIN{1ULL << 21};
220constexpr const uint64_t OPTIMIZER_SWITCH_SUBQUERY_TO_DERIVED{1ULL << 22};
221constexpr const uint64_t OPTIMIZER_SWITCH_PREFER_ORDERING_INDEX{1ULL << 23};
222constexpr const uint64_t OPTIMIZER_SWITCH_HYPERGRAPH_OPTIMIZER{1ULL << 24};
224 << 25};
225constexpr const uint64_t OPTIMIZER_SWITCH_LAST{1ULL << 26};
226
228
235
236/**
237 Exit code used by mysqld_exit, exit and _exit function
238 to indicate successful termination of mysqld.
239*/
240constexpr const int MYSQLD_SUCCESS_EXIT{0};
241/**
242 Exit code used by mysqld_exit, exit and _exit function to
243 signify unsuccessful termination of mysqld. The exit
244 code signifies the server should NOT BE RESTARTED AUTOMATICALLY
245 by init systems like systemd.
246*/
247constexpr const int MYSQLD_ABORT_EXIT{1};
248/**
249 Exit code used by mysqld_exit, exit and _exit function to
250 signify unsuccessful termination of mysqld. The exit code
251 signifies the server should be RESTARTED AUTOMATICALLY by
252 init systems like systemd.
253*/
254constexpr const int MYSQLD_FAILURE_EXIT{2};
255/**
256 Exit code used by mysqld_exit, my_thread_exit function which allows
257 for external programs like systemd, mysqld_safe to restart mysqld
258 server. The exit code 16 is chosen so it is safe as InnoDB code
259 exit directly with values like 3.
260*/
261constexpr const int MYSQLD_RESTART_EXIT{16};
262
263constexpr const size_t UUID_LENGTH{8 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 12};
264
265/**
266 This enumeration type is used only by the function find_item_in_list
267 to return the info on how an item has been resolved against a list
268 of possibly aliased items.
269 The item can be resolved:
270 - against an alias name of the list's element (RESOLVED_AGAINST_ALIAS)
271 - against non-aliased field name of the list (RESOLVED_WITH_NO_ALIAS)
272 - against an aliased field name of the list (RESOLVED_BEHIND_ALIAS)
273 - ignoring the alias name in cases when SQL requires to ignore aliases
274 (e.g. when the resolved field reference contains a table name or
275 when the resolved item is an expression) (RESOLVED_IGNORING_ALIAS)
276*/
284
285/// Enumeration for {Item,Query_block[_UNIT],Table_function}::walk
286enum class enum_walk {
287 PREFIX = 0x01,
288 POSTFIX = 0x02,
289 SUBQUERY = 0x04,
290 SUBQUERY_PREFIX = 0x05, // Combine prefix and subquery traversal
291 SUBQUERY_POSTFIX = 0x06 // Combine postfix and subquery traversal
292};
293
295 return enum_walk(int(lhs) | int(rhs));
296}
297
298inline bool operator&(enum_walk lhs, enum_walk rhs) {
299 return (int(lhs) & int(rhs)) != 0;
300}
301
302class Item;
303/// Processor type for {Item,Query_block[_UNIT],Table_function}::walk
304using Item_processor = bool (Item::*)(unsigned char *);
305
306/// Enumeration for Query_block::condition_context.
307/// If the expression being resolved belongs to a condition clause (WHERE, etc),
308/// it is connected to the clause's root through a chain of Items; tells if this
309/// chain matches ^(AND)*$ ("is top-level"), ^(AND|OR)*$, or neither.
311 NEITHER,
312 ANDS,
313 ANDS_ORS,
314};
315
316/// Used to uniquely name expressions in derived tables
317#define SYNTHETIC_FIELD_NAME "Name_exp_"
318#endif /* SQL_CONST_INCLUDED */
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:853
#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:227
@ SHOW_OPTION_DISABLED
Definition: sql_const.h:227
@ SHOW_OPTION_YES
Definition: sql_const.h:227
@ SHOW_OPTION_NO
Definition: sql_const.h:227
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:263
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_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:298
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:294
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:261
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:277
@ NOT_RESOLVED
Definition: sql_const.h:278
@ RESOLVED_BEHIND_ALIAS
Definition: sql_const.h:279
@ RESOLVED_AGAINST_ALIAS
Definition: sql_const.h:280
@ RESOLVED_WITH_NO_ALIAS
Definition: sql_const.h:281
@ RESOLVED_IGNORING_ALIAS
Definition: sql_const.h:282
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:240
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:247
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:286
@ 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:225
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:254
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:304
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:229
@ MARK_COLUMNS_TEMP
Definition: sql_const.h:233
@ MARK_COLUMNS_READ
Definition: sql_const.h:231
@ MARK_COLUMNS_WRITE
Definition: sql_const.h:232
@ MARK_COLUMNS_NONE
Definition: sql_const.h:230
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:310
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