MySQL  8.0.18
Source Code Documentation
sql_const.h
Go to the documentation of this file.
1 /* Copyright (c) 2006, 2019, Oracle and/or its affiliates. All rights reserved.
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 any kinds.
28 */
29 
30 #ifndef SQL_CONST_INCLUDED
31 #define SQL_CONST_INCLUDED
32 
33 #include "my_inttypes.h"
34 
35 #define LIBLEN FN_REFLEN - FN_LEN /* Max l{ngd p} dev */
36 /**
37  The maximum length of a key in the table definition cache.
38 
39  The key consists of the schema name, a '\0' character, the table
40  name and a '\0' character. Hence NAME_LEN * 2 + 1 + 1.
41 
42  Additionally, the key can be suffixed with either 4 + 4 extra bytes
43  for slave tmp tables, or with a single extra byte for tables in a
44  secondary storage engine. Add 4 + 4 to account for either of these
45  suffixes.
46 */
47 #define MAX_DBKEY_LENGTH (NAME_LEN * 2 + 1 + 1 + 4 + 4)
48 #define MAX_ALIAS_NAME 256
49 #define MAX_FIELD_NAME 34 /* Max colum name length +2 */
50 #define MAX_SYS_VAR_LENGTH 32
51 #define MAX_KEY MAX_INDEXES /* Max used keys */
52 #define MAX_REF_PARTS 16U /* Max parts used as ref */
53 #define MAX_KEY_LENGTH 3072U /* max possible key */
54 #if SIZEOF_OFF_T > 4
55 #define MAX_REFLENGTH 8 /* Max length for record ref */
56 #else
57 #define MAX_REFLENGTH 4 /* Max length for record ref */
58 #endif
59 
60 #define MAX_MBWIDTH 3 /* Max multibyte sequence */
61 #define MAX_FIELD_CHARLENGTH 255
62 #define MAX_FIELD_VARCHARLENGTH 65535
63 #define MAX_FIELD_BLOBLENGTH UINT_MAX32 /* cf field_blob::get_length() */
64 /**
65  CHAR and VARCHAR fields longer than this number of characters are converted
66  to BLOB.
67  Non-character fields longer than this number of bytes are converted to BLOB.
68  Comparisons should be '>' or '<='.
69 */
70 #define CONVERT_IF_BIGGER_TO_BLOB 512 /* Used for CREATE ... SELECT */
71 
72 /* Max column width +1 */
73 #define MAX_FIELD_WIDTH (MAX_FIELD_CHARLENGTH * MAX_MBWIDTH + 1)
74 
75 #define MAX_BIT_FIELD_LENGTH 64 /* Max length in bits for bit fields */
76 
77 #define MAX_DATE_WIDTH 10 /* YYYY-MM-DD */
78 #define MAX_TIME_WIDTH 10 /* -838:59:59 */
79 #define MAX_TIME_FULL_WIDTH 23 /* -DDDDDD HH:MM:SS.###### */
80 #define MAX_DATETIME_FULL_WIDTH 29 /* YYYY-MM-DD HH:MM:SS.###### AM */
81 #define MAX_DATETIME_WIDTH 19 /* YYYY-MM-DD HH:MM:SS */
82 #define MAX_DATETIME_COMPRESSED_WIDTH 14 /* YYYYMMDDHHMMSS */
83 
84 #define DATE_INT_DIGITS 8 /* YYYYMMDD */
85 #define TIME_INT_DIGITS 7 /* hhhmmss */
86 #define DATETIME_INT_DIGITS 14 /* YYYYMMDDhhmmss */
87 
88 /**
89  MAX_TABLES and xxx_TABLE_BIT are used in optimization of table factors and
90  expressions, and in join plan generation.
91  MAX_TABLES counts the maximum number of tables that can be handled in a
92  join operation. It is the number of bits in the table_map, minus the
93  number of pseudo table bits (bits that do not represent actual tables, but
94  still need to be handled by our algorithms). The pseudo table bits are:
95  INNER_TABLE_BIT is set for all expressions that contain a parameter,
96  a subquery that accesses tables, or a function that accesses tables.
97  An expression that has only INNER_TABLE_BIT is constant for the duration
98  of a query expression, but must be evaluated at least once during execution.
99  OUTER_REF_TABLE_BIT is set for expressions that contain a column that
100  is resolved as an outer reference. Also notice that all subquery items
101  between the column reference and the query block where the column is
102  resolved, have this bit set. Expressions that are represented by this bit
103  are constant for the duration of the subquery they are defined in.
104  RAND_TABLE_BIT is set for expressions containing a non-deterministic
105  element, such as a random function or a non-deterministic function.
106  Expressions containing this bit cannot be evaluated once and then cached,
107  they must be evaluated at latest possible point.
108  MAX_TABLES_FOR_SIZE adds the pseudo bits and is used for sizing purposes only.
109 */
110 #define MAX_TABLES_FOR_SIZE (sizeof(table_map) * 8) ///< Use for sizing ONLY
111 #define MAX_TABLES (MAX_TABLES_FOR_SIZE - 3) ///< Max tables in join
112 #define INNER_TABLE_BIT (((table_map)1) << (MAX_TABLES + 0))
113 #define OUTER_REF_TABLE_BIT (((table_map)1) << (MAX_TABLES + 1))
114 #define RAND_TABLE_BIT (((table_map)1) << (MAX_TABLES + 2))
115 #define PSEUDO_TABLE_BITS \
116  (INNER_TABLE_BIT | OUTER_REF_TABLE_BIT | RAND_TABLE_BIT)
117 #define MAX_FIELDS 4096 /* Maximum number of columns */
118 #define MAX_PARTITIONS 8192
119 
120 #define MAX_ENUM_VALUES 65535 /* Max number of enumeration values */
121 #define MAX_INTERVAL_VALUE_LENGTH 255 /* Max length of enum/set values */
122 
123 #define MAX_SELECT_NESTING (sizeof(nesting_map) * 8 - 1)
124 
125 #define DEFAULT_SORT_MEMORY (256UL * 1024UL)
126 #define MIN_SORT_MEMORY (32UL * 1024UL)
127 
128 /* Some portable defines */
129 
130 #define STRING_BUFFER_USUAL_SIZE 80
131 
132 /* Memory allocated when parsing a statement / saving a statement */
133 #define MEM_ROOT_BLOCK_SIZE 8192
134 #define MEM_ROOT_PREALLOC 8192
135 #define TRANS_MEM_ROOT_BLOCK_SIZE 4096
136 #define TRANS_MEM_ROOT_PREALLOC 4096
137 
138 #define DEFAULT_ERROR_COUNT 1024
139 #define EXTRA_RECORDS 10 /* Extra records in sort */
140 #define SCROLL_EXTRA 5 /* Extra scroll-rows. */
141 #define FERR -1 /* Error from my_functions */
142 #define CREATE_MODE 0 /* Default mode on new files */
143 #define NAMES_SEP_CHAR '\377' /* Char to sep. names */
144 
145 #define READ_RECORD_BUFFER (uint)(IO_SIZE * 8) /* Pointer_buffer_size */
146 #define DISK_BUFFER_SIZE (uint)(IO_SIZE * 16) /* Size of diskbuffer */
147 
148 /***************************************************************************
149  Configuration parameters
150 ****************************************************************************/
151 
152 #define ACL_CACHE_SIZE 256
153 #define MAX_PASSWORD_LENGTH 32
154 #define HOST_CACHE_SIZE 128
155 #define MAX_ACCEPT_RETRY 10 // Test accept this many times
156 #define MAX_FIELDS_BEFORE_HASH 32
157 #define USER_VARS_HASH_SIZE 16
158 #define TABLE_OPEN_CACHE_MIN 400
159 #define TABLE_OPEN_CACHE_DEFAULT 4000
160 static const ulong TABLE_DEF_CACHE_DEFAULT = 400;
161 static const ulong SCHEMA_DEF_CACHE_DEFAULT = 256;
164 static const ulong EVENT_DEF_CACHE_DEFAULT = 256;
165 
166 /**
167  Maximum number of connections default value.
168  151 is larger than Apache's default max children,
169  to avoid "too many connections" error in a common setup.
170 */
171 #define MAX_CONNECTIONS_DEFAULT 151
172 /**
173  We must have room for at least 400 table definitions in the table
174  cache, since otherwise there is no chance prepared
175  statements that use these many tables can work.
176  Prepared statements use table definition cache ids (table_map_id)
177  as table version identifiers. If the table definition
178  cache size is less than the number of tables used in a statement,
179  the contents of the table definition cache is guaranteed to rotate
180  between a prepare and execute. This leads to stable validation
181  errors. In future we shall use more stable version identifiers,
182  for now the only solution is to ensure that the table definition
183  cache can contain at least all tables of a given statement.
184 */
185 static const ulong TABLE_DEF_CACHE_MIN = 400;
186 static const ulong SCHEMA_DEF_CACHE_MIN = 256;
188 static const ulong TABLESPACE_DEF_CACHE_MIN = 256;
189 static const ulong EVENT_DEF_CACHE_MIN = 256;
190 
191 /*
192  Stack reservation.
193  Feel free to raise this by the smallest amount you can to get the
194  "execution_constants" test to pass.
195 */
196 #if defined HAVE_UBSAN && SIZEOF_CHARP == 4
197 #define STACK_MIN_SIZE 30000 // Abort if less stack during eval.
198 #else
199 #define STACK_MIN_SIZE 20000 // Abort if less stack during eval.
200 #endif
201 
202 #define STACK_MIN_SIZE_FOR_OPEN 1024 * 80
203 
204 #if defined(__SUNPRO_CC)
205 #define STACK_BUFF_ALLOC 352 * 2 ///< For stack overrun checks
206 #else
207 #define STACK_BUFF_ALLOC 352 ///< For stack overrun checks
208 #endif
209 
210 #ifndef MYSQLD_NET_RETRY_COUNT
211 #define MYSQLD_NET_RETRY_COUNT 10 ///< Abort read after this many int.
212 #endif
213 
214 #define QUERY_ALLOC_BLOCK_SIZE 8192
215 #define QUERY_ALLOC_PREALLOC_SIZE 8192
216 #define TRANS_ALLOC_BLOCK_SIZE 4096
217 #define TRANS_ALLOC_PREALLOC_SIZE 4096
218 #define RANGE_ALLOC_BLOCK_SIZE 4096
219 #define ACL_ALLOC_BLOCK_SIZE 1024
220 #define UDF_ALLOC_BLOCK_SIZE 1024
221 #define TABLE_ALLOC_BLOCK_SIZE 1024
222 #define WARN_ALLOC_BLOCK_SIZE 2048
223 
224 /*
225  The following parameters is to decide when to use an extra cache to
226  optimise seeks when reading a big table in sorted order
227 */
228 #define MIN_FILE_LENGTH_TO_USE_ROW_CACHE (10L * 1024 * 1024)
229 #define MIN_ROWS_TO_USE_TABLE_CACHE 100
230 #define MIN_ROWS_TO_USE_BULK_INSERT 100
231 
232 /*
233  For sequential disk seeks the cost formula is:
234  DISK_SEEK_BASE_COST + DISK_SEEK_PROP_COST * #blocks_to_skip
235 
236  The cost of average seek
237  DISK_SEEK_BASE_COST + DISK_SEEK_PROP_COST*BLOCKS_IN_AVG_SEEK =1.0.
238 */
239 #define DISK_SEEK_BASE_COST (0.9)
240 
241 #define BLOCKS_IN_AVG_SEEK 128
242 
243 #define DISK_SEEK_PROP_COST (0.1 / BLOCKS_IN_AVG_SEEK)
244 
245 /**
246  Number of rows in a reference table when refereed through a not unique key.
247  This value is only used when we don't know anything about the key
248  distribution.
249 */
250 #define MATCHING_ROWS_IN_OTHER_TABLE 10
251 
252 #define MY_CHARSET_BIN_MB_MAXLEN 1
253 
254 /** Don't pack string keys shorter than this (if PACK_KEYS=1 isn't used). */
255 #define KEY_DEFAULT_PACK_LENGTH 8
256 
257 /** Characters shown for the command in 'show processlist'. */
258 #define PROCESS_LIST_WIDTH 100
259 /* Characters shown for the command in 'information_schema.processlist' */
260 #define PROCESS_LIST_INFO_WIDTH 65535
261 
262 #define PRECISION_FOR_DOUBLE 53
263 #define PRECISION_FOR_FLOAT 24
264 
265 /* -[digits].E+## */
266 #define MAX_FLOAT_STR_LENGTH (FLT_DIG + 6)
267 /* -[digits].E+### */
268 #define MAX_DOUBLE_STR_LENGTH (DBL_DIG + 7)
269 
270 /*
271  Default time to wait before aborting a new client connection
272  that does not respond to "initial server greeting" timely
273 */
274 #define CONNECT_TIMEOUT 10
275 
276 /* The following can also be changed from the command line */
277 #define DEFAULT_CONCURRENCY 10
278 #define DELAYED_LIMIT 100 /**< pause after xxx inserts */
279 #define DELAYED_QUEUE_SIZE 1000
280 #define DELAYED_WAIT_TIMEOUT 5 * 60 /**< Wait for delayed insert */
281 
282 #define LONG_TIMEOUT ((ulong)3600L * 24L * 365L)
283 
284 /**
285  Maximum length of time zone name that we support (Time zone name is
286  char(64) in db). mysqlbinlog needs it.
287 */
288 #define MAX_TIME_ZONE_NAME_LENGTH (NAME_LEN + 1)
289 
290 #if defined(_WIN32)
291 #define INTERRUPT_PRIOR -2
292 #define CONNECT_PRIOR -1
293 #define WAIT_PRIOR 0
294 #define QUERY_PRIOR 2
295 #else
296 #define INTERRUPT_PRIOR 10
297 #define CONNECT_PRIOR 9
298 #define WAIT_PRIOR 8
299 #define QUERY_PRIOR 6
300 #endif /* _WIN32 */
301 
302 /*
303  Flags below are set when we perform
304  context analysis of the statement and make
305  subqueries non-const. It prevents subquery
306  evaluation at context analysis stage.
307 */
308 
309 /*
310  Don't evaluate this subquery during statement prepare even if
311  it's a constant one. The flag is switched off in the end of
312  mysqld_stmt_prepare.
313 */
314 #define CONTEXT_ANALYSIS_ONLY_PREPARE 1
315 /*
316  Special SELECT_LEX::prepare mode: changing of query is prohibited.
317  When creating a view, we need to just check its syntax omitting
318  any optimizations: afterwards definition of the view will be
319  reconstructed by means of ::print() methods and written to
320  to an .frm file. We need this definition to stay untouched.
321 */
322 #define CONTEXT_ANALYSIS_ONLY_VIEW 2
323 /*
324  Don't evaluate this subquery during derived table prepare even if
325  it's a constant one.
326 */
327 #define CONTEXT_ANALYSIS_ONLY_DERIVED 4
328 
329 /* @@optimizer_switch flags. These must be in sync with optimizer_switch_typelib
330  */
331 #define OPTIMIZER_SWITCH_INDEX_MERGE (1ULL << 0)
332 #define OPTIMIZER_SWITCH_INDEX_MERGE_UNION (1ULL << 1)
333 #define OPTIMIZER_SWITCH_INDEX_MERGE_SORT_UNION (1ULL << 2)
334 #define OPTIMIZER_SWITCH_INDEX_MERGE_INTERSECT (1ULL << 3)
335 #define OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN (1ULL << 4)
336 #define OPTIMIZER_SWITCH_INDEX_CONDITION_PUSHDOWN (1ULL << 5)
337 /** If this is off, MRR is never used. */
338 #define OPTIMIZER_SWITCH_MRR (1ULL << 6)
339 /**
340  If OPTIMIZER_SWITCH_MRR is on and this is on, MRR is used depending on a
341  cost-based choice ("automatic"). If OPTIMIZER_SWITCH_MRR is on and this is
342  off, MRR is "forced" (i.e. used as long as the storage engine is capable of
343  doing it).
344 */
345 #define OPTIMIZER_SWITCH_MRR_COST_BASED (1ULL << 7)
346 #define OPTIMIZER_SWITCH_BNL (1ULL << 8)
347 #define OPTIMIZER_SWITCH_BKA (1ULL << 9)
348 #define OPTIMIZER_SWITCH_MATERIALIZATION (1ULL << 10)
349 #define OPTIMIZER_SWITCH_SEMIJOIN (1ULL << 11)
350 #define OPTIMIZER_SWITCH_LOOSE_SCAN (1ULL << 12)
351 #define OPTIMIZER_SWITCH_FIRSTMATCH (1ULL << 13)
352 #define OPTIMIZER_SWITCH_DUPSWEEDOUT (1ULL << 14)
353 #define OPTIMIZER_SWITCH_SUBQ_MAT_COST_BASED (1ULL << 15)
354 #define OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS (1ULL << 16)
355 #define OPTIMIZER_SWITCH_COND_FANOUT_FILTER (1ULL << 17)
356 #define OPTIMIZER_SWITCH_DERIVED_MERGE (1ULL << 18)
357 #define OPTIMIZER_SWITCH_USE_INVISIBLE_INDEXES (1ULL << 19)
358 #define OPTIMIZER_SKIP_SCAN (1ULL << 20)
359 #define OPTIMIZER_SWITCH_HASH_JOIN (1ULL << 21)
360 #define OPTIMIZER_SWITCH_LAST (1ULL << 22)
361 
362 #define OPTIMIZER_SWITCH_DEFAULT \
363  (OPTIMIZER_SWITCH_INDEX_MERGE | OPTIMIZER_SWITCH_INDEX_MERGE_UNION | \
364  OPTIMIZER_SWITCH_INDEX_MERGE_SORT_UNION | \
365  OPTIMIZER_SWITCH_INDEX_MERGE_INTERSECT | \
366  OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN | \
367  OPTIMIZER_SWITCH_INDEX_CONDITION_PUSHDOWN | OPTIMIZER_SWITCH_MRR | \
368  OPTIMIZER_SWITCH_MRR_COST_BASED | OPTIMIZER_SWITCH_BNL | \
369  OPTIMIZER_SWITCH_MATERIALIZATION | OPTIMIZER_SWITCH_SEMIJOIN | \
370  OPTIMIZER_SWITCH_LOOSE_SCAN | OPTIMIZER_SWITCH_FIRSTMATCH | \
371  OPTIMIZER_SWITCH_DUPSWEEDOUT | OPTIMIZER_SWITCH_SUBQ_MAT_COST_BASED | \
372  OPTIMIZER_SWITCH_USE_INDEX_EXTENSIONS | \
373  OPTIMIZER_SWITCH_COND_FANOUT_FILTER | OPTIMIZER_SWITCH_DERIVED_MERGE | \
374  OPTIMIZER_SKIP_SCAN | OPTIMIZER_SWITCH_HASH_JOIN)
375 
377 
383 };
384 
385 /*
386  Exit code used by mysqld_exit, exit and _exit function
387  to indicate successful termination of mysqld.
388 */
389 #define MYSQLD_SUCCESS_EXIT 0
390 /*
391  Exit code used by mysqld_exit, exit and _exit function to
392  signify unsuccessful termination of mysqld. The exit
393  code signifies the server should NOT BE RESTARTED AUTOMATICALLY
394  by init systems like systemd.
395 */
396 #define MYSQLD_ABORT_EXIT 1
397 /*
398  Exit code used by mysqld_exit, exit and _exit function to
399  signify unsuccessful termination of mysqld. The exit code
400  signifies the server should be RESTARTED AUTOMATICALLY by
401  init systems like systemd.
402 */
403 #define MYSQLD_FAILURE_EXIT 2
404 /*
405  Exit code used by mysqld_exit, my_thread_exit function which allows
406  for external programs like systemd, mysqld_safe to restart mysqld
407  server. The exit code 16 is choosen so it is safe as InnoDB code
408  exit directly with values like 3.
409 */
410 #define MYSQLD_RESTART_EXIT 16
411 
412 #define UUID_LENGTH (8 + 1 + 4 + 1 + 4 + 1 + 4 + 1 + 12)
413 
414 /*
415  This enumeration type is used only by the function find_item_in_list
416  to return the info on how an item has been resolved against a list
417  of possibly aliased items.
418  The item can be resolved:
419  - against an alias name of the list's element (RESOLVED_AGAINST_ALIAS)
420  - against non-aliased field name of the list (RESOLVED_WITH_NO_ALIAS)
421  - against an aliased field name of the list (RESOLVED_BEHIND_ALIAS)
422  - ignoring the alias name in cases when SQL requires to ignore aliases
423  (e.g. when the resolved field reference contains a table name or
424  when the resolved item is an expression) (RESOLVED_IGNORING_ALIAS)
425 */
432 };
433 
434 /// Enumeration for {Item,SELECT_LEX[_UNIT],Table_function}::walk
435 enum class enum_walk {
436  PREFIX = 0x01,
437  POSTFIX = 0x02,
438  SUBQUERY = 0x04,
439  SUBQUERY_PREFIX = 0x05, // Combine prefix and subquery traversal
440  SUBQUERY_POSTFIX = 0x06 // Combine postfix and subquery traversal
441 };
442 
444  return enum_walk(int(lhs) | int(rhs));
445 }
446 
447 inline bool operator&(enum_walk lhs, enum_walk rhs) {
448  return (int(lhs) & int(rhs)) != 0;
449 }
450 
451 class Item;
452 /// Processor type for {Item,SELECT_LEX[_UNIT],Table_function}::walk
453 typedef bool (Item::*Item_processor)(uchar *arg);
454 
455 #endif /* SQL_CONST_INCLUDED */
Definition: sql_const.h:428
unsigned char uchar
Definition: my_inttypes.h:51
Definition: sql_const.h:382
static const ulong TABLE_DEF_CACHE_MIN
We must have room for at least 400 table definitions in the table cache, since otherwise there is no ...
Definition: sql_const.h:185
Definition: sql_const.h:376
Some integer typedefs for easier portability.
#define bool
Definition: config_static.h:42
Definition: sql_const.h:427
static const ulong EVENT_DEF_CACHE_MIN
Definition: sql_const.h:189
enum_mark_columns
Definition: sql_const.h:378
enum_walk
Enumeration for {Item,SELECT_LEX[_UNIT],Table_function}walk.
Definition: sql_const.h:435
enum_resolution_type
Definition: sql_const.h:426
Definition: sql_const.h:379
Definition: sql_const.h:431
Definition: sql_const.h:380
Definition: sql_const.h:430
Definition: sql_const.h:381
Definition: item.h:668
Definition: sql_const.h:376
static const ulong SCHEMA_DEF_CACHE_DEFAULT
Definition: sql_const.h:161
bool(Item::* Item_processor)(uchar *arg)
Processor type for {Item,SELECT_LEX[_UNIT],Table_function}walk.
Definition: sql_const.h:453
SHOW_COMP_OPTION
Definition: sql_const.h:376
enum_walk operator|(enum_walk lhs, enum_walk rhs)
Definition: sql_const.h:443
static const ulong EVENT_DEF_CACHE_DEFAULT
Definition: sql_const.h:164
static const ulong STORED_PROGRAM_DEF_CACHE_MIN
Definition: sql_const.h:187
static const ulong SCHEMA_DEF_CACHE_MIN
Definition: sql_const.h:186
static const ulong TABLESPACE_DEF_CACHE_MIN
Definition: sql_const.h:188
bool operator &(enum_walk lhs, enum_walk rhs)
Definition: sql_const.h:447
static const ulong TABLESPACE_DEF_CACHE_DEFAULT
Definition: sql_const.h:163
Definition: sql_const.h:376
static const ulong STORED_PROGRAM_DEF_CACHE_DEFAULT
Definition: sql_const.h:162
Definition: sql_const.h:429
unsigned long ulong
Definition: my_inttypes.h:48
static const ulong TABLE_DEF_CACHE_DEFAULT
Definition: sql_const.h:160