MySQL  8.0.16
Source Code Documentation
my_base.h
Go to the documentation of this file.
1 /* Copyright (c) 2000, 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 include/my_base.h
25  This file includes constants used by all storage engines.
26 */
27 
28 #ifndef _my_base_h
29 #define _my_base_h
30 
31 #include <limits.h>
32 #include <sys/types.h>
33 
34 #include "my_config.h"
35 #include "my_double2ulonglong.h"
36 #include "my_inttypes.h"
37 #include "my_macros.h"
38 
39 /* The following is bits in the flag parameter to ha_open() */
40 
41 #define HA_OPEN_ABORT_IF_LOCKED 0 /* default */
42 #define HA_OPEN_WAIT_IF_LOCKED 1
43 #define HA_OPEN_IGNORE_IF_LOCKED 2
44 #define HA_OPEN_TMP_TABLE 4 /* Table is a temp table */
45 #define HA_OPEN_DELAY_KEY_WRITE 8 /* Don't update index */
46 #define HA_OPEN_ABORT_IF_CRASHED 16
47 #define HA_OPEN_FOR_REPAIR 32 /* open even if crashed */
48 #define HA_OPEN_FROM_SQL_LAYER 64
49 #define HA_OPEN_COPY 256 /* Open copy (for repair) */
50 /**
51  Internal temp table, used for temporary results; one or more instance of it
52  may be be created.
53 */
54 #define HA_OPEN_INTERNAL_TABLE 512
55 
56 /* The following is parameter to ha_rkey() how to use key */
57 
58 /*
59  We define a complete-field prefix of a key value as a prefix where
60  the last included field in the prefix contains the full field, not
61  just some bytes from the start of the field. A partial-field prefix
62  is allowed to contain only a few first bytes from the last included
63  field.
64 
65  Below HA_READ_KEY_EXACT, ..., HA_READ_BEFORE_KEY can take a
66  complete-field prefix of a key value as the search
67  key. HA_READ_PREFIX and HA_READ_PREFIX_LAST could also take a
68  partial-field prefix, but currently (4.0.10) they are only used with
69  complete-field prefixes. MySQL uses a padding trick to implement
70  LIKE 'abc%' queries.
71 
72  NOTE that in InnoDB HA_READ_PREFIX_LAST will NOT work with a
73  partial-field prefix because InnoDB currently strips spaces from the
74  end of varchar fields!
75 */
76 
78  HA_READ_KEY_EXACT, /* Find first record else error */
79  HA_READ_KEY_OR_NEXT, /* Record or next record */
80  HA_READ_KEY_OR_PREV, /* Record or previous */
81  HA_READ_AFTER_KEY, /* Find next rec. after key-record */
82  HA_READ_BEFORE_KEY, /* Find next rec. before key-record */
83  HA_READ_PREFIX, /* Key which as same prefix */
84  HA_READ_PREFIX_LAST, /* Last key with the same prefix */
85  HA_READ_PREFIX_LAST_OR_PREV, /* Last or prev key with the same prefix */
86  HA_READ_MBR_CONTAIN, /* Minimum Bounding Rectangle contains */
87  HA_READ_MBR_INTERSECT, /* Minimum Bounding Rectangle intersect */
88  HA_READ_MBR_WITHIN, /* Minimum Bounding Rectangle within */
89  HA_READ_MBR_DISJOINT, /* Minimum Bounding Rectangle disjoint */
90  HA_READ_MBR_EQUAL, /* Minimum Bounding Rectangle equal */
91  HA_READ_INVALID = -1 /* Invalid enumeration value, always last. */
92 };
93 
94 /* Key algorithm types */
95 
96 enum ha_key_alg {
97  /**
98  Used for cases when key algorithm which is supported by SE can't be
99  described by one of other classes from this enum (@sa Federated,
100  PerfSchema SE, @sa dd::Index::IA_SE_SPECIFIC).
101 
102  @note Assigned as default value for key algorithm by parser, replaced by
103  SEs default algorithm for keys in mysql_prepare_create_table().
104  */
106  HA_KEY_ALG_BTREE = 1, /* B-tree. */
107  HA_KEY_ALG_RTREE = 2, /* R-tree, for spatial searches */
108  HA_KEY_ALG_HASH = 3, /* HASH keys (HEAP, NDB). */
109  HA_KEY_ALG_FULLTEXT = 4 /* FULLTEXT. */
110 };
111 
112 /* Storage media types */
113 
115  HA_SM_DEFAULT = 0, /* Not specified (engine default) */
116  HA_SM_DISK = 1, /* DISK storage */
117  HA_SM_MEMORY = 2 /* MAIN MEMORY storage */
118 };
119 
120 /* The following is parameter to ha_extra() */
121 
122 /*
123  We divide the HA_EXTRA entries into the following categories:
124 
125  1) Operations used by most handlers:
126  HA_EXTRA_KEYREAD
127  HA_EXTRA_NO_KEYREAD
128  HA_EXTRA_FLUSH
129  HA_EXTRA_PREPARE_FOR_RENAME
130  HA_EXTRA_FORCE_REOPEN
131 
132  2) Operations used by some non-MyISAM handlers
133  HA_EXTRA_KEYREAD_PRESERVE_FIELDS
134  HA_EXTRA_IGNORE_DUP_KEY
135  HA_EXTRA_NO_IGNORE_DUP_KEY
136 
137  3) Operations used only by MyISAM
138  HA_EXTRA_NORMAL
139  HA_EXTRA_QUICK
140  HA_EXTRA_PREPARE_FOR_UPDATE
141  HA_EXTRA_PREPARE_FOR_DROP
142  HA_EXTRA_READCHECK
143  HA_EXTRA_NO_READCHECK
144 
145  4) Operations only used by temporary tables for query processing
146  HA_EXTRA_RESET_STATE
147  HA_EXTRA_NO_ROWS
148 
149  5) Operations only used by MyISAM internally
150  HA_EXTRA_NO_USER_CHANGE
151  HA_EXTRA_WAIT_LOCK
152  HA_EXTRA_WAIT_NOLOCK
153  HA_EXTRA_NO_KEYS
154  HA_EXTRA_KEYREAD_CHANGE_POS
155  HA_EXTRA_REMEMBER_POS
156  HA_EXTRA_RESTORE_POS
157  HA_EXTRA_PRELOAD_BUFFER_SIZE
158  HA_EXTRA_CHANGE_KEY_TO_DUP
159  HA_EXTRA_CHANGE_KEY_TO_UNIQUE
160 
161  6) Operations only used by federated tables for query processing
162  HA_EXTRA_INSERT_WITH_UPDATE
163 
164  7) Operations only used by NDB
165  HA_EXTRA_DELETE_CANNOT_BATCH
166  HA_EXTRA_UPDATE_CANNOT_BATCH
167 
168  8) Operations only used by MERGE
169  HA_EXTRA_ADD_CHILDREN_LIST
170  HA_EXTRA_ATTACH_CHILDREN
171  HA_EXTRA_IS_ATTACHED_CHILDREN
172  HA_EXTRA_DETACH_CHILDREN
173 
174  9) Operations only used by InnoDB
175  HA_EXTRA_EXPORT
176 
177  10) Operations only used by partitioning
178  HA_EXTRA_SECONDARY_SORT_ROWID
179 
180  The individual entries are described in more detail below.
181 */
182 
184  /*
185  Optimize for space (def).
186  Only used in MyISAM to reset quick mode, not implemented by any other
187  handler. Quick mode is also reset in MyISAM by handler::reset().
188 
189  It is called after completing a successful DELETE query if the QUICK
190  option is set.
191  */
193  /*
194  Optimize for speed.
195  When the user does DELETE QUICK FROM table where-clause; this extra
196  option is called before the delete query is performed and
197  HA_EXTRA_NORMAL is called after the delete query is completed.
198  Temporary tables used internally in MySQL always set this option
199 
200  The meaning of quick mode is that when deleting in a B-tree no merging
201  of leafs is performed. This is a common method and many large DBMS's
202  actually only support this quick mode since it is very difficult to
203  merge leaves in a tree used by many threads concurrently.
204  */
207  /*
208  Only one call to HA_EXTRA_NO_READCHECK from ha_open where it says that
209  this is not needed in SQL. The reason for this call is that MyISAM sets
210  the READ_CHECK_USED in the open call so the call is needed for MyISAM
211  to reset this feature.
212  The idea with this parameter was to inform of doing/not doing a read
213  check before applying an update. Since SQL always performs a read before
214  applying the update No Read Check is needed in MyISAM as well.
215 
216  This is a cut from Docs/myisam.txt
217  Sometimes you might want to force an update without checking whether
218  another user has changed the record since you last read it. This is
219  somewhat dangerous, so it should ideally not be used. That can be
220  accomplished by wrapping the mi_update() call in two calls to mi_extra(),
221  using the flags HA_EXTRA_NO_READCHECK and HA_EXTRA_READCHECK.
222  */
225  /*
226  These parameters are used to provide an optimisation hint to the handler.
227  If HA_EXTRA_KEYREAD is set it is enough to read the index fields, for
228  many handlers this means that the index-only scans can be used and it
229  is not necessary to use the real records to satisfy this part of the
230  query. Index-only scans is a very important optimisation for disk-based
231  indexes. For main-memory indexes most indexes contain a reference to the
232  record and thus KEYREAD only says that it is enough to read key fields.
233  HA_EXTRA_NO_KEYREAD disables this for the handler, also, handler::reset()
234  will disable this option.
235  The handler will set HA_KEYREAD_ONLY in its table flags to indicate this
236  feature is supported.
237  */
240  /*
241  No user is allowed to write. Only used by MyISAM, never called.
242  Simulates lock_type as locked.
243  */
245  /*
246  Only used by MyISAM, called from MyISAM handler but never from server
247  code on top of the handler.
248  Sets lock_wait on/off:
249  Wait until file is avalable (def).
250  If file is locked, return quickly.
251  */
254  /*
255  Remove all update of keys. Only used by MyISAM, only used internally in
256  MyISAM handler, never called from server level.
257  */
259  HA_EXTRA_KEYREAD_CHANGE_POS = 17, /* Keyread, but change pos */
260  /* xxxxchk -r must be used */
261  HA_EXTRA_REMEMBER_POS = 18, /* Remember pos for next/prev */
263  /*
264  Only used by MyISAM and Archive, called when altering table,
265  closing tables to enforce a reopen of the table files.
266  */
268  /*
269  Indication to flush tables to disk, is supposed to be used to
270  ensure disk based tables are flushed at end of query execution.
271  Currently is never used.
272  */
274  /*
275  Don't insert rows indication to HEAP and MyISAM, only used by temporary
276  tables used in query processing.
277  */
279  /*
280  This option is used by most handlers and it resets the handler state
281  to the same state as after an open call.
282 
283  It is called from the reset method in the handler interface. There are
284  three instances where this is called.
285 
286  1) After completing a INSERT ... SELECT ... query the handler for the
287  table inserted into is reset
288  2) It is called from close_thread_table which in turn is called from
289  close_thread_tables except in the case where the tables are locked
290  in which case ha_commit_stmt is called instead.
291  It is only called from here if refresh_version hasn't changed and the
292  table is not an old table when calling close_thread_table.
293  close_thread_tables is called from many places as a general clean up
294  function after completing a query.
295  3) It is called when deleting the QUICK_RANGE_SELECT object if the
296  QUICK_RANGE_SELECT object had its own handler object. It is called
297  immediatley before close of this local handler object.
298 
299  If there is a READ CACHE it is reinit'ed. A cache is reinit'ed to
300  restart reading or to change type of cache between READ CACHE and
301  WRITE CACHE.
302 
303  This extra function is always called immediately before calling
304  delete_all_rows on the handler for temporary tables.
305  There are cases however when HA_EXTRA_RESET_STATE isn't called in
306  a similar case for a temporary table in sql_union.cc.
307 
308  The only case that delete_all_rows is called on non-temporary tables
309  is in sql_delete.cc when DELETE FROM table; is called by a user.
310  In this case no special extra calls are performed before or after this
311  call.
312  */
314  /*
315  Informs the handler that we will not stop the transaction if we get
316  duplicate key errors during insert/upate.
317  Always called in pair, triggered by INSERT IGNORE and other similar
318  SQL constructs.
319  Not used by MyISAM.
320  */
323  /*
324  Only used by MyISAM, called in preparation for a DROP TABLE.
325  It's used mostly by Windows that cannot handle dropping an open file.
326  On other platforms it has the same effect as HA_EXTRA_FORCE_REOPEN.
327  */
329  /*
330  Remove read cache if problems.
331  This is called as part of a multi-table update. When the table to be
332  updated is also scanned then this informs MyISAM handler to drop any
333  caches if dynamic records are used (fixed size records do not care
334  about this call).
335  */
337  HA_EXTRA_PRELOAD_BUFFER_SIZE, /* Set buffer size for preloading */
338  /*
339  On-the-fly switching between unique and non-unique key inserting.
340  */
343  /*
344  When using HA_EXTRA_KEYREAD, overwrite only key member fields and keep
345  other fields intact. When this is off (by default) InnoDB will use memcpy
346  to overwrite entire row.
347  This is a strictly InnoDB feature that is more or less undocumented.
348  */
350  /*
351  Ignore if the a tuple is not found, continue processing the
352  transaction and ignore that 'row'. Needed for idempotency
353  handling on the slave
354 
355  Currently only used by NDB storage engine.
356  */
359  /*
360  Mark the table as a log table. For some handlers (e.g. CSV) this results
361  in a special locking for the table.
362  */
364  /*
365  Informs handler that write_row() which tries to insert new row into the
366  table and encounters some already existing row with same primary/unique
367  key can replace old row with new row instead of reporting error (basically
368  it informs handler that we do REPLACE instead of simple INSERT).
369  Off by default.
370  */
373  /*
374  Inform handler that delete_row()/update_row() cannot batch deletes/updates
375  and should perform them immediately. This may be needed when table has
376  AFTER DELETE/UPDATE triggers which access to subject table.
377  These flags are reset by the handler::reset() call.
378  */
381  /*
382  Inform handler that an "INSERT...ON DUPLICATE KEY UPDATE" will be
383  executed. This condition is unset by HA_EXTRA_NO_IGNORE_DUP_KEY.
384  */
386  /*
387  Informs the handler we are about to attempt a rename of the table.
388  For handlers that have share open files (MyISAM key-file and
389  Archive writer) they must close the files before rename is possible
390  on Windows.
391  */
393  /*
394  Special actions for MERGE tables.
395  */
400  /*
401  Prepare table for export
402  (e.g. quiesce the table and write table metadata).
403  */
405  /** Do secondary sort by handler::ref (rowid) after key sort. */
407  /*
408  Skip Serializable isolation level on Views on DD tables.
409  This will make reads on DD Views non blocking */
411  /* Begin of insertion into intermediate table during copy alter operation. */
413  /* Insertion is done in intermediate table during copy alter operation. */
415  /* Do not use auto-increment locking. */
417 };
418 
419 /* Compatible option, to be deleted in 6.0 */
420 #define HA_EXTRA_PREPARE_FOR_DELETE HA_EXTRA_PREPARE_FOR_DROP
421 
422 /* The following is parameter to ha_panic() */
423 
425  HA_PANIC_CLOSE, /* Close all databases */
426  HA_PANIC_WRITE, /* Unlock and write status */
427  HA_PANIC_READ /* Lock and read keyinfo */
428 };
429 
430 /* The following is parameter to ha_create(); keytypes */
431 
434  HA_KEYTYPE_TEXT = 1, /* Key is sorted as letters */
435  HA_KEYTYPE_BINARY = 2, /* Key is sorted as unsigned chars */
440  HA_KEYTYPE_NUM = 7, /* Not packed num with pre-space */
448  /* Varchar (0-255 bytes) with length packed with 1 byte */
449  HA_KEYTYPE_VARTEXT1 = 15, /* Key is sorted as letters */
450  HA_KEYTYPE_VARBINARY1 = 16, /* Key is sorted as unsigned chars */
451  /* Varchar (0-65535 bytes) with length packed with 2 bytes */
452  HA_KEYTYPE_VARTEXT2 = 17, /* Key is sorted as letters */
453  HA_KEYTYPE_VARBINARY2 = 18, /* Key is sorted as unsigned chars */
455 };
456 
457 #define HA_MAX_KEYTYPE 31 /* Must be log2-1 */
458 
459 /*
460  Flags for KEY::flags bitmap.
461 
462  Also used for similar bitmaps in storage engines (HP_KEYDEF::flag,
463  MI_KEYDEF::flag, ...).
464 */
465 
466 /** Do not allow duplicate records. */
467 #define HA_NOSAME 1
468 /** Pack string key to previous key (optimization supported by MyISAM). */
469 #define HA_PACK_KEY 2
470 /**
471  Auto-increment key.
472 
473  @note Not used by SQL-layer/ for KEY::flags. Only set by MyISAM and
474  Heap SEs in MI/HP_KEYDEF::flag.
475 */
476 #define HA_AUTO_KEY 16
477 /** Packing of all keys to previous key (optimization supported by MyISAM). */
478 #define HA_BINARY_PACK_KEY 32
479 /** Full-text key. */
480 #define HA_FULLTEXT 128
481 /**
482  Flag in MI_KEYDEF::flag which marks MyISAM's "uniques".
483 
484  @note Internal to MyISAM. Current server doesn't use this feature.
485 */
486 #define HA_UNIQUE_CHECK 256
487 /** Spatial key. */
488 #define HA_SPATIAL 1024
489 /**
490  NULLs in key are compared as equal.
491 
492  @note Used only for internal temporary tables created by optimizer.
493 */
494 #define HA_NULL_ARE_EQUAL 2048
495 /** Key was automatically created to support Foreign Key constraint. */
496 #define HA_GENERATED_KEY 8192
497 
498 /* The combination of the above can be used for key type comparison. */
499 #define HA_KEYFLAG_MASK \
500  (HA_NOSAME | HA_PACK_KEY | HA_AUTO_KEY | HA_BINARY_PACK_KEY | HA_FULLTEXT | \
501  HA_UNIQUE_CHECK | HA_SPATIAL | HA_NULL_ARE_EQUAL | HA_GENERATED_KEY)
502 
503 /**
504  Key was renamed (or is result of renaming a key).
505 
506  This is another flag internal to SQL-layer.
507  Used by in-place ALTER TABLE implementation.
508 
509  @note This flag can be set for keys which have other changes than
510  simple renaming as well. So from the point of view of storage
511  engine such key might have to be dropped and re-created with
512  new definition.
513 */
514 #define HA_KEY_RENAMED (1 << 17)
515 /** Set if a key is on any virtual generated columns */
516 #define HA_VIRTUAL_GEN_KEY (1 << 18)
517 
518 /*
519  Bits in KEY::flags, MI/HP_KEYDEF::flag which are automatically
520  calculated based on other flags/members in these structures
521  (often from info about key parts).
522 */
523 
524 /** Some key part packs space. Internal to MyISAM. */
525 #define HA_SPACE_PACK_USED 4
526 /** Some key part has variable length. Internal to MyISAM and Heap engines. */
527 #define HA_VAR_LENGTH_KEY 8
528 /** Some key part is nullable. */
529 #define HA_NULL_PART_KEY 64
530 /** Internal bit used when sorting records. Internal to MyISAM. */
531 #define HA_SORT_ALLOWS_SAME 512
532 /** Key has comment. */
533 #define HA_USES_COMMENT 4096
534 /** Fulltext index uses [pre]parser */
535 #define HA_USES_PARSER 16384
536 /** Key uses KEY_BLOCK_SIZE option. */
537 #define HA_USES_BLOCK_SIZE 32768
538 /**
539  Key contains partial segments.
540 
541  @note This flag is internal to SQL-layer by design. It is not supposed to
542  be used to storage engines. It is intended to pass information into
543  internal static sort_keys(KEY *, KEY *) function.
544 
545  This flag can be calculated -- it's based on key lengths comparison.
546 */
547 #define HA_KEY_HAS_PART_KEY_SEG 65536
548 
549 /* These flags can be added to key-seg-flag */
550 
551 #define HA_SPACE_PACK 1 /* Pack space in key-seg */
552 #define HA_PART_KEY_SEG 4 /* Used by MySQL for part-key-cols */
553 #define HA_VAR_LENGTH_PART 8
554 #define HA_NULL_PART 16
555 #define HA_BLOB_PART 32
556 #define HA_SWAP_KEY 64
557 #define HA_REVERSE_SORT 128 /* Sort key in reverse order */
558 #define HA_NO_SORT 256 /* do not bother sorting on this keyseg */
559 /*
560  End space in unique/varchar are considered equal. (Like 'a' and 'a ')
561  Only needed for internal temporary tables.
562 */
563 #define HA_END_SPACE_ARE_EQUAL 512
564 #define HA_BIT_PART 1024
565 
566 /*
567  Flags for HA_CREATE_INFO::table_options and TABLE_SHARE::db_create_options
568  TABLE_SHARE::db_options_in_use bitmaps.
569 
570  @note These bitmaps are used for storing information about some table
571  option values/attributes.
572  @note HA_CREATE_INFO::table_options and TABLE_SHARE::db_create_options
573  are basically the same bitmap at the time of table creation and
574  at the time of table opening/usage correspondingly.
575  @note TABLE_SHARE::db_options_in_use is normally copy of db_create_options
576  but can be overriden by SE. E.g. MyISAM does this at handler::open()
577  and hander::info() time.
578 
579  Also used for similar bitmaps in MyISAM (MYISAM_SHARE::options,
580  MI_ISAMINFO::options).
581 */
582 
583 /**
584  Indicates that storage engine needs to use packed row format.
585  Set for tables with ROW_FORMAT=DYNAMIC clause, for tables with BLOB fields,
586  and for tables with VARCHAR columns without ROW_FORMAT=FIXED.
587 
588  This flag is respected by MyISAM only (it might also decide to use this
589  optimization for its own reasons). InnoDB relies on HA_CREATE_INFO::row_type
590  directly instead.
591 */
592 #define HA_OPTION_PACK_RECORD 1
593 /**
594  PACK_KEYS=1 option was specified.
595 
596  PACK_KEYS=# option specifies whether key packing - optimization supported
597  by MyISAM, should be used.
598  * PACK_KEYS=1 means all keys should be packed,
599  * PACK_KEYS=0 (denoted by @sa HA_OPTION_NO_PACK_KEYS flag) means that key
600  packing should not be used at all.
601  * Not using this option or using PACK_KEYS=DEFAULT clause (denoted by
602  absence of both HA_OPTION_PACK_KEYS and HA_OPTION_NO_PACK_KEYS flags)
603  means that key packing will be used for long string columns.
604 */
605 #define HA_OPTION_PACK_KEYS 2
606 /**
607  Flag indicating that table is compressed. Used by MyISAM storage engine to
608  tell SQL-layer that tables is compressed. Not set or stored by SQL-layer,
609 
610  MyISAM doesn't respect ROW_FORMAT=COMPRESSED clause and doesn't allow direct
611  creation of compressed tables. Existing tables can be compressed by external
612  tool. This tool marks such tables with HA_OPTION_COMPRESS_RECORD flag in
613  MYISAM_SHARE::options, MI_ISAMINFO::options. Then storage engine sets this
614  flag in TABLE_SHARE::db_options_in_use to let SQL-layer know about the fact.
615  It is never set in HA_CREATE_INFO::table_options or
616  TABLE_SHARE::db_create_options.
617 */
618 #define HA_OPTION_COMPRESS_RECORD 4
619 /**
620  Unused. Formerly HA_OPTION_LONG_BLOB_PTR - new ISAM format/portable
621  BLOB pointers.
622 */
623 #define HA_OPTION_UNUSED1 8
624 /**
625  Storage engine (MyISAM) internal flag for marking temporary tables.
626 
627  Used in MYISAM_SHARE::options, MI_ISAMINFO::options, not used by SQL-layer,
628  in HA_CREATE_INFO::table_options or TABLE_SHARE::db_create_options.
629 */
630 #define HA_OPTION_TMP_TABLE 16
631 /**
632  CHECKSUM=1 option was specified.
633 
634  This option enables live checksumming for MyISAM tables. Not used by InnoDB.
635  @sa HA_OPTION_NO_CHECKSUM.
636 */
637 #define HA_OPTION_CHECKSUM 32
638 /**
639  DELAY_KEY_WRITE=1 option was specified. This option enables MyISAM
640  optimization which postpones key updates until table is closed/expelled from
641  the table cache.
642 
643  @sa HA_OPTION_NO_DELAY_KEY_WRITE.
644 */
645 #define HA_OPTION_DELAY_KEY_WRITE 64
646 /**
647  PACK_KEYS=0 option was specified.
648 
649  @sa HA_OPTION_PACK_KEYS for further description.
650  @note Unlike HA_OPTION_PACK_KEYS this flag is SQL-layer only.
651 */
652 #define HA_OPTION_NO_PACK_KEYS 128
653 /**
654  Flag specific to table creation and HA_CREATE_INFO::table_options.
655  Indicates that storage engine instead of creating new table, needs
656  to discover existing one (which metadata was discovered from SE
657  earlier).
658  Not used in TABLE_SHARE::db_create_options/db_options_in_use.
659 */
660 #define HA_OPTION_CREATE_FROM_ENGINE 256
661 /**
662  Storage engine (MyISAM) internal flag for marking tables which
663  rely on SQL-layer because they have keys using fulltext parser plugin.
664 
665  Used in MYISAM_SHARE::options, MI_ISAMINFO::options, not used by SQL-layer,
666  in HA_CREATE_INFO::table_options or TABLE_SHARE::db_create_options.
667 */
668 #define HA_OPTION_RELIES_ON_SQL_LAYER 512
669 /** Unused. Formerly HA_OPTION_NULL_FIELDS - reserved for Maria SE. */
670 #define HA_OPTION_UNUSED2 1024
671 /** Unused. Formerly HA_OPTION_PAGE_CHECKSUM - reserved for Maria SE. */
672 #define HA_OPTION_UNUSED3 2048
673 /** STATS_PERSISTENT=1 has been specified in the SQL command (either CREATE
674 or ALTER TABLE). Table and index statistics that are collected by the
675 storage engine and used by the optimizer for query optimization will be
676 stored on disk and will not change after a server restart. */
677 #define HA_OPTION_STATS_PERSISTENT 4096
678 /** STATS_PERSISTENT=0 has been specified in CREATE/ALTER TABLE. Statistics
679 for the table will be wiped away on server shutdown and new ones recalculated
680 after the server is started again. If none of HA_OPTION_STATS_PERSISTENT or
681 HA_OPTION_NO_STATS_PERSISTENT is set, this means that the setting is not
682 explicitly set at table level and the corresponding table will use whatever
683 is the global server default. */
684 #define HA_OPTION_NO_STATS_PERSISTENT 8192
685 /**
686  MyISAM internal flag used by myisamchk external tool.
687 
688  Not used by SQL-layer/in HA_CREATE_INFO::table_options and
689  TABLE_SHARE::db_create_options.
690 */
691 #define HA_OPTION_TEMP_COMPRESS_RECORD 16384
692 /**
693  MyISAM internal flag which marks table as read-only.
694  Set by myisampack external tool.
695 
696  Not used by SQL-layer/in HA_CREATE_INFO::table_options and
697  TABLE_SHARE::db_create_options.
698 */
699 #define HA_OPTION_READ_ONLY_DATA 32768
700 /**
701  CHECKSUM=0 option was specified. Only used by SQL-layer, in
702  HA_CREATE_INFO::table_options. Not persisted in data-dictionary.
703 */
704 #define HA_OPTION_NO_CHECKSUM (1L << 17)
705 /**
706  DELAY_KEY_WRITE=0 option was specified. Only used by SQL-layer, in
707  HA_CREATE_INFO::table_options. Not persisted in data-dictionary.
708 */
709 #define HA_OPTION_NO_DELAY_KEY_WRITE (1L << 18)
710 
711 /* Bits in flag to create() */
712 
713 #define HA_DONT_TOUCH_DATA 1 /* Don't empty datafile (isamchk) */
714 #define HA_PACK_RECORD 2 /* Request packed record format */
715 #define HA_CREATE_TMP_TABLE 4
716 #define HA_CREATE_CHECKSUM 8
717 #define HA_CREATE_KEEP_FILES 16 /* don't overwrite .MYD and MYI */
718 #define HA_CREATE_PAGE_CHECKSUM 32
719 #define HA_CREATE_DELAY_KEY_WRITE 64
720 #define HA_CREATE_RELIES_ON_SQL_LAYER 128
721 #define HA_CREATE_INTERNAL_TABLE 256
722 
723 /*
724  The following flags (OR-ed) are passed to handler::info() method.
725  The method copies misc handler information out of the storage engine
726  to data structures accessible from MySQL
727 
728  Same flags are also passed down to mi_status, myrg_status, etc.
729 */
730 
731 /* this one is not used */
732 #define HA_STATUS_POS 1
733 /*
734  assuming the table keeps shared actual copy of the 'info' and
735  local, possibly outdated copy, the following flag means that
736  it should not try to get the actual data (locking the shared structure)
737  slightly outdated version will suffice
738 */
739 #define HA_STATUS_NO_LOCK 2
740 /* update the time of the last modification (in handler::update_time) */
741 #define HA_STATUS_TIME 4
742 /*
743  Recalculate loads of constant variables. MyISAM also sets things
744  directly on the table share object.
745 
746  Check whether this should be fixed since handlers should not
747  change things directly on the table object.
748 
749  Monty comment: This should NOT be changed! It's the handlers
750  responsibility to correct table->s->keys_xxxx information if keys
751  have been disabled.
752 
753  The most important parameters set here is records per key on
754  all indexes. block_size and primar key ref_length.
755 
756  For each index there is an array of rec_per_key.
757  As an example if we have an index with three attributes a,b and c
758  we will have an array of 3 rec_per_key.
759  rec_per_key[0] is an estimate of number of records divided by
760  number of unique values of the field a.
761  rec_per_key[1] is an estimate of the number of records divided
762  by the number of unique combinations of the fields a and b.
763  rec_per_key[2] is an estimate of the number of records divided
764  by the number of unique combinations of the fields a,b and c.
765 
766  Many handlers only set the value of rec_per_key when all fields
767  are bound (rec_per_key[2] in the example above).
768 
769  If the handler doesn't support statistics, it should set all of the
770  above to 0.
771 
772  update the 'constant' part of the info:
773  handler::max_data_file_length, max_index_file_length, create_time
774  sortkey, ref_length, block_size, data_file_name, index_file_name.
775  handler::table->s->keys_in_use, keys_for_keyread, rec_per_key
776 */
777 #define HA_STATUS_CONST 8
778 /*
779  update the 'variable' part of the info:
780  handler::records, deleted, data_file_length, index_file_length,
781  check_time, mean_rec_length
782 */
783 #define HA_STATUS_VARIABLE 16
784 /*
785  This flag is used to get index number of the unique index that
786  reported duplicate key.
787  update handler::errkey and handler::dupp_ref
788  see handler::get_dup_key()
789 */
790 #define HA_STATUS_ERRKEY 32
791 /*
792  update handler::auto_increment_value
793 */
794 #define HA_STATUS_AUTO 64
795 /*
796  Get also delete_length when HA_STATUS_VARIABLE is called. It's ok to set it
797  also when only HA_STATUS_VARIABLE but it won't be used.
798 */
799 #define HA_STATUS_VARIABLE_EXTRA 128
800 
801 /*
802  Errorcodes given by handler functions
803 
804  Do not add error numbers before HA_ERR_FIRST.
805  If necessary to add lower numbers, change HA_ERR_FIRST accordingly.
806 */
807 #define HA_ERR_FIRST 120 /* Copy of first error nr.*/
808 
809 #define HA_ERR_KEY_NOT_FOUND 120 /* Didn't find key on read or update */
810 #define HA_ERR_FOUND_DUPP_KEY 121 /* Dupplicate key on write */
811 #define HA_ERR_INTERNAL_ERROR 122 /* Internal error */
812 #define HA_ERR_RECORD_CHANGED 123 /* Uppdate with is recoverable */
813 #define HA_ERR_WRONG_INDEX 124 /* Wrong index given to function */
814 #define HA_ERR_CRASHED 126 /* Indexfile is crashed */
815 #define HA_ERR_WRONG_IN_RECORD 127 /* Record-file is crashed */
816 #define HA_ERR_OUT_OF_MEM 128 /* Record-file is crashed */
817 #define HA_ERR_NOT_A_TABLE 130 /* not a MYI file - no signature */
818 #define HA_ERR_WRONG_COMMAND 131 /* Command not supported */
819 #define HA_ERR_OLD_FILE 132 /* old databasfile */
820 #define HA_ERR_NO_ACTIVE_RECORD 133 /* No record read in update() */
821 #define HA_ERR_RECORD_DELETED 134 /* A record is not there */
822 #define HA_ERR_RECORD_FILE_FULL 135 /* No more room in file */
823 #define HA_ERR_INDEX_FILE_FULL 136 /* No more room in file */
824 #define HA_ERR_END_OF_FILE 137 /* end in next/prev/first/last */
825 #define HA_ERR_UNSUPPORTED 138 /* unsupported extension used */
826 #define HA_ERR_TOO_BIG_ROW 139 /* Too big row */
827 #define HA_WRONG_CREATE_OPTION 140 /* Wrong create option */
828 #define HA_ERR_FOUND_DUPP_UNIQUE 141 /* Dupplicate unique on write */
829 #define HA_ERR_UNKNOWN_CHARSET 142 /* Can't open charset */
830 #define HA_ERR_WRONG_MRG_TABLE_DEF 143 /* conflicting tables in MERGE */
831 #define HA_ERR_CRASHED_ON_REPAIR 144 /* Last (automatic?) repair failed */
832 #define HA_ERR_CRASHED_ON_USAGE 145 /* Table must be repaired */
833 #define HA_ERR_LOCK_WAIT_TIMEOUT 146
834 #define HA_ERR_LOCK_TABLE_FULL 147
835 #define HA_ERR_READ_ONLY_TRANSACTION 148 /* Updates not allowed */
836 #define HA_ERR_LOCK_DEADLOCK 149
837 #define HA_ERR_CANNOT_ADD_FOREIGN 150 /* Cannot add a foreign key constr. */
838 #define HA_ERR_NO_REFERENCED_ROW 151 /* Cannot add a child row */
839 #define HA_ERR_ROW_IS_REFERENCED 152 /* Cannot delete a parent row */
840 #define HA_ERR_NO_SAVEPOINT 153 /* No savepoint with that name */
841 #define HA_ERR_NON_UNIQUE_BLOCK_SIZE 154 /* Non unique key block size */
842 #define HA_ERR_NO_SUCH_TABLE 155 /* The table does not exist in engine */
843 #define HA_ERR_TABLE_EXIST 156 /* The table existed in storage engine */
844 #define HA_ERR_NO_CONNECTION 157 /* Could not connect to storage engine */
845 /* NULLs are not supported in spatial index */
846 #define HA_ERR_NULL_IN_SPATIAL 158
847 #define HA_ERR_TABLE_DEF_CHANGED 159 /* The table changed in storage engine */
848 /* There's no partition in table for given value */
849 #define HA_ERR_NO_PARTITION_FOUND 160
850 #define HA_ERR_RBR_LOGGING_FAILED 161 /* Row-based binlogging of row failed */
851 #define HA_ERR_DROP_INDEX_FK 162 /* Index needed in foreign key constr */
852 /*
853  Upholding foreign key constraints would lead to a duplicate key error
854  in some other table.
855 */
856 #define HA_ERR_FOREIGN_DUPLICATE_KEY 163
857 /* The table changed in storage engine */
858 #define HA_ERR_TABLE_NEEDS_UPGRADE 164
859 #define HA_ERR_TABLE_READONLY 165 /* The table is not writable */
860 
861 #define HA_ERR_AUTOINC_READ_FAILED 166 /* Failed to get next autoinc value */
862 #define HA_ERR_AUTOINC_ERANGE 167 /* Failed to set row autoinc value */
863 #define HA_ERR_GENERIC 168 /* Generic error */
864 /* row not actually updated: new values same as the old values */
865 #define HA_ERR_RECORD_IS_THE_SAME 169
866 /* It is not possible to log this statement */
867 #define HA_ERR_LOGGING_IMPOSSIBLE \
868  170 /* It is not possible to log this \
869  statement */
870 #define HA_ERR_CORRUPT_EVENT \
871  171 /* The event was corrupt, leading to \
872  illegal data being read */
873 #define HA_ERR_NEW_FILE 172 /* New file format */
874 #define HA_ERR_ROWS_EVENT_APPLY \
875  173 /* The event could not be processed \
876  no other hanlder error happened */
877 #define HA_ERR_INITIALIZATION 174 /* Error during initialization */
878 #define HA_ERR_FILE_TOO_SHORT 175 /* File too short */
879 #define HA_ERR_WRONG_CRC 176 /* Wrong CRC on page */
880 #define HA_ERR_TOO_MANY_CONCURRENT_TRXS \
881  177 /*Too many active concurrent transactions */
882 /* There's no explicitly listed partition in table for the given value */
883 #define HA_ERR_NOT_IN_LOCK_PARTITIONS 178
884 #define HA_ERR_INDEX_COL_TOO_LONG 179 /* Index column length exceeds limit */
885 #define HA_ERR_INDEX_CORRUPT 180 /* InnoDB index corrupted */
886 #define HA_ERR_UNDO_REC_TOO_BIG 181 /* Undo log record too big */
887 #define HA_FTS_INVALID_DOCID 182 /* Invalid InnoDB Doc ID */
888 #define HA_ERR_TABLE_IN_FK_CHECK \
889  183 /* Table being used in foreign key check \
890  */
891 #define HA_ERR_TABLESPACE_EXISTS \
892  184 /* The tablespace existed in storage engine */
893 #define HA_ERR_TOO_MANY_FIELDS 185 /* Table has too many columns */
894 #define HA_ERR_ROW_IN_WRONG_PARTITION 186 /* Row in wrong partition */
895 #define HA_ERR_INNODB_READ_ONLY 187 /* InnoDB is in read only mode. */
896 #define HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT \
897  188 /* FTS query exceeds result cache limit */
898 #define HA_ERR_TEMP_FILE_WRITE_FAILURE 189 /* Temporary file write failure */
899 #define HA_ERR_INNODB_FORCED_RECOVERY \
900  190 /* Innodb is in force recovery mode \
901  */
902 #define HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE \
903  191 /* Too many words in a phrase \
904  */
905 #define HA_ERR_FK_DEPTH_EXCEEDED 192 /* FK cascade depth exceeded */
906 #define HA_MISSING_CREATE_OPTION 193 /* Option Missing during Create */
907 #define HA_ERR_SE_OUT_OF_MEMORY 194 /* Out of memory in storage engine */
908 #define HA_ERR_TABLE_CORRUPT 195 /* Table/Clustered index is corrupted. */
909 #define HA_ERR_QUERY_INTERRUPTED 196 /* The query was interrupted */
910 #define HA_ERR_TABLESPACE_MISSING 197 /* Missing Tablespace */
911 #define HA_ERR_TABLESPACE_IS_NOT_EMPTY 198 /* Tablespace is not empty */
912 #define HA_ERR_WRONG_FILE_NAME 199 /* Invalid Filename */
913 #define HA_ERR_NOT_ALLOWED_COMMAND 200 /* Operation is not allowed */
914 #define HA_ERR_COMPUTE_FAILED 201 /* Compute generated column value failed */
915 /*
916  Table's row format has changed in the storage engine.
917  Information in the data-dictionary needs to be updated.
918 */
919 #define HA_ERR_ROW_FORMAT_CHANGED 202
920 #define HA_ERR_NO_WAIT_LOCK 203 /* Don't wait for record lock */
921 #define HA_ERR_DISK_FULL_NOWAIT 204 /* No more room in disk */
922 #define HA_ERR_NO_SESSION_TEMP 205 /* No session temporary space available */
923 #define HA_ERR_WRONG_TABLE_NAME 206 /* Wrong or Invalid table name */
924 #define HA_ERR_LAST 206 /* Copy of last error nr */
925 
926 /* Number of different errors */
927 #define HA_ERR_ERRORS (HA_ERR_LAST - HA_ERR_FIRST + 1)
928 
929 /* Other constants */
930 
931 #define HA_NAMELEN 64 /* Max length of saved filename */
932 #define NO_SUCH_KEY (~(uint)0) /* used as a key no. */
933 
935 #define HA_WHOLE_KEY (~(key_part_map)0)
936 
937 /* Intern constants in databases */
938 
939 /* bits in _search */
940 #define SEARCH_FIND 1
941 #define SEARCH_NO_FIND 2
942 #define SEARCH_SAME 4
943 #define SEARCH_BIGGER 8
944 #define SEARCH_SMALLER 16
945 #define SEARCH_SAVE_BUFF 32
946 #define SEARCH_UPDATE 64
947 #define SEARCH_PREFIX 128
948 #define SEARCH_LAST 256
949 #define MBR_CONTAIN 512
950 #define MBR_INTERSECT 1024
951 #define MBR_WITHIN 2048
952 #define MBR_DISJOINT 4096
953 #define MBR_EQUAL 8192
954 #define MBR_DATA 16384
955 #define SEARCH_NULL_ARE_EQUAL 32768 /* NULL in keys are equal */
956 #define SEARCH_NULL_ARE_NOT_EQUAL 65536 /* NULL in keys are not equal */
957 
958 /* bits in opt_flag */
959 #define QUICK_USED 1
960 #define READ_CACHE_USED 2
961 #define READ_CHECK_USED 4
962 #define KEY_READ_USED 8
963 #define WRITE_CACHE_USED 16
964 #define OPT_NO_ROWS 32
965 
966 /* bits in update */
967 #define HA_STATE_CHANGED 1 /* Database has changed */
968 #define HA_STATE_AKTIV 2 /* Has a current record */
969 #define HA_STATE_WRITTEN 4 /* Record is written */
970 #define HA_STATE_DELETED 8
971 #define HA_STATE_NEXT_FOUND 16 /* Next found record (record before) */
972 #define HA_STATE_PREV_FOUND 32 /* Prev found record (record after) */
973 #define HA_STATE_NO_KEY 64 /* Last read didn't find record */
974 #define HA_STATE_KEY_CHANGED 128
975 #define HA_STATE_WRITE_AT_END 256 /* set in _ps_find_writepos */
976 #define HA_STATE_BUFF_SAVED 512 /* If current keybuff is info->buff */
977 #define HA_STATE_ROW_CHANGED 1024 /* To invalide ROW cache */
978 #define HA_STATE_EXTEND_BLOCK 2048
979 
980 /* myisampack expects no more than 32 field types. */
994 };
995 
1001 };
1002 
1003 /* For key ranges */
1004 
1006  NO_MIN_RANGE = 1 << 0, ///< from -inf
1007  NO_MAX_RANGE = 1 << 1, ///< to +inf
1008  /* X < key, i.e. not including the left endpoint */
1009  NEAR_MIN = 1 << 2,
1010  /* X > key, i.e. not including the right endpoint */
1011  NEAR_MAX = 1 << 3,
1012  /*
1013  This flag means that index is a unique index, and the interval is
1014  equivalent to "AND(keypart_i = const_i)", where all of const_i are
1015  not NULLs.
1016  */
1017  UNIQUE_RANGE = 1 << 4,
1018  /*
1019  This flag means that the interval is equivalent to
1020  "AND(keypart_i = const_i)", where not all key parts may be used
1021  but all of const_i are not NULLs.
1022  */
1023  EQ_RANGE = 1 << 5,
1024  /*
1025  This flag has the same meaning as UNIQUE_RANGE, except that for at
1026  least one keypart the condition is "keypart IS NULL".
1027  */
1028  NULL_RANGE = 1 << 6,
1029  /**
1030  This flag means that the index is an rtree index, and the interval is
1031  specified using HA_READ_MBR_XXX defined in enum ha_rkey_function.
1032  */
1033  GEOM_FLAG = 1 << 7,
1034  /* Deprecated, currently used only by NDB at row retrieval */
1035  SKIP_RANGE = 1 << 8,
1036  /*
1037  Used to indicate that index dives can be skipped. This can happen when:
1038  a) Query satisfies JOIN_TAB::check_skip_records_in_range_qualification. OR
1039  b) Used together with EQ_RANGE to indicate that index statistics should be
1040  used instead of sampling the index.
1041  */
1043  /*
1044  Keypart is reverse-ordered (DESC) and ranges needs to be scanned
1045  backward. @see quick_range_seq_init, get_quick_keys.
1046  */
1047  DESC_FLAG = 1 << 10,
1048 };
1049 
1050 struct key_range {
1051  const uchar *key;
1055 };
1056 
1060  char *ptr; /* Free to use by caller (ptr to row etc) */
1061  uint range_flag; /* key range flags see above */
1062 };
1063 
1064 /* For number of records */
1065 #define rows2double(A) ulonglong2double(A)
1067 
1068 #define HA_POS_ERROR (~(ha_rows)0)
1069 #define HA_OFFSET_ERROR (~(my_off_t)0)
1070 
1071 #if SIZEOF_OFF_T == 4
1072 #define MAX_FILE_SIZE INT_MAX32
1073 #else
1074 #define MAX_FILE_SIZE LLONG_MAX
1075 #endif
1076 
1077 #define HA_VARCHAR_PACKLENGTH(field_length) ((field_length) < 256 ? 1 : 2)
1078 
1079 #endif /* _my_base_h */
Definition: my_base.h:439
Definition: my_base.h:258
Some common macros.
Used for cases when key algorithm which is supported by SE can&#39;t be described by one of other classes...
Definition: my_base.h:105
Definition: my_base.h:392
Definition: my_base.h:259
unsigned char uchar
Definition: my_inttypes.h:49
Definition: my_base.h:985
from -inf
Definition: my_base.h:1006
Definition: my_base.h:206
en_fieldtype
Definition: my_base.h:981
uint length
Definition: my_base.h:1052
Definition: my_base.h:396
Definition: my_base.h:349
Definition: my_base.h:989
Definition: my_base.h:357
ulong key_part_map
Definition: my_base.h:934
Some integer typedefs for easier portability.
Definition: my_base.h:363
Definition: my_base.h:410
Definition: my_base.h:205
Definition: my_base.h:993
Definition: my_base.h:440
Definition: my_base.h:444
Definition: my_base.h:453
Definition: my_base.h:987
Definition: my_base.h:446
Definition: my_base.h:998
Definition: my_base.h:80
Utility functions for converting between ulonglong and double.
const uchar * key
Definition: my_base.h:1051
Definition: my_base.h:78
Definition: my_base.h:398
Definition: my_base.h:107
Definition: my_base.h:322
ha_rkey_function
Definition: my_base.h:77
Definition: my_base.h:437
Definition: my_base.h:380
Definition: my_base.h:433
Definition: my_base.h:89
Definition: my_base.h:404
ha_panic_function
Definition: my_base.h:424
Definition: my_base.h:108
Definition: my_base.h:192
Definition: my_base.h:990
Definition: my_base.h:999
Definition: my_base.h:239
Definition: my_base.h:84
Definition: my_base.h:83
Definition: my_base.h:1017
Definition: my_base.h:991
Definition: my_base.h:984
This flag means that the index is an rtree index, and the interval is specified using HA_READ_MBR_XXX...
Definition: my_base.h:1033
Definition: my_base.h:372
enum ha_rkey_function flag
Definition: my_base.h:1054
Definition: my_base.h:1009
Definition: my_base.h:445
Definition: my_base.h:399
Definition: my_base.h:1057
uint range_flag
Definition: my_base.h:1061
Definition: my_base.h:443
Definition: my_base.h:1035
Definition: my_base.h:238
Definition: my_base.h:1047
ha_storage_media
Definition: my_base.h:114
data_file_type
Definition: my_base.h:996
key_range start_key
Definition: my_base.h:1058
Definition: my_base.h:1028
Definition: my_base.h:321
Definition: my_base.h:992
unsigned int uint
Definition: uca-dump.cc:29
Definition: my_base.h:106
Definition: my_base.h:427
Definition: my_base.h:379
Definition: my_base.h:371
Definition: my_base.h:328
Definition: my_base.h:397
Definition: my_base.h:109
Definition: my_base.h:452
Definition: my_base.h:442
Definition: my_base.h:337
Definition: my_base.h:90
key_part_map keypart_map
Definition: my_base.h:1053
Definition: my_base.h:262
Definition: my_base.h:252
Definition: my_base.h:244
Definition: my_base.h:1050
Definition: my_base.h:87
Definition: my_base.h:449
Definition: my_base.h:91
key_range end_key
Definition: my_base.h:1059
unsigned long my_off_t
Definition: my_inttypes.h:88
Definition: my_base.h:1042
Definition: my_base.h:278
Definition: my_base.h:454
Definition: my_base.h:253
Definition: my_base.h:438
Definition: my_base.h:447
Definition: my_base.h:342
Definition: my_base.h:425
Do secondary sort by handler::ref (rowid) after key sort.
Definition: my_base.h:406
Definition: my_base.h:385
Definition: my_base.h:441
Definition: my_base.h:983
ha_key_alg
Definition: my_base.h:96
Definition: my_base.h:88
char * ptr
Definition: my_base.h:1060
Definition: my_base.h:224
Definition: my_base.h:450
Definition: my_base.h:116
Definition: my_base.h:313
ha_base_keytype
Definition: my_base.h:432
Definition: my_base.h:988
Definition: my_base.h:997
Definition: my_base.h:267
Definition: my_base.h:85
key_range_flags
Definition: my_base.h:1005
Definition: my_base.h:115
Definition: my_base.h:982
Definition: my_base.h:416
Definition: my_base.h:336
to +inf
Definition: my_base.h:1007
Definition: my_base.h:435
Definition: my_base.h:358
Definition: my_base.h:414
Definition: my_base.h:426
Definition: my_base.h:273
Definition: my_base.h:82
Definition: my_base.h:1011
Definition: my_base.h:117
Definition: my_base.h:79
Definition: my_base.h:1023
Definition: my_base.h:341
Definition: my_base.h:986
unsigned long ulong
Definition: my_inttypes.h:46
Definition: my_base.h:434
Definition: my_base.h:223
my_off_t ha_rows
Definition: my_base.h:1066
Definition: my_base.h:261
Definition: my_base.h:412
Definition: my_base.h:86
Definition: my_base.h:81
Definition: my_base.h:1000
ha_extra_function
Definition: my_base.h:183
Definition: my_base.h:436