~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definitions.h

  • Committer: Brian Aker
  • Date: 2009-02-20 22:48:37 UTC
  • Revision ID: brian@tangent.org-20090220224837-fw5wrf46n4ru3e6a
First pass of stripping uint

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
 
21
20
/**
22
21
 * @file
23
22
 *
24
 
 * Mostly constants and some macros/functions used by the server  
 
23
 * Mostly constants and some macros/functions used by the server
25
24
 */
26
25
 
27
26
#ifndef DRIZZLE_SERVER_DEFINITIONS_H
28
27
#define DRIZZLE_SERVER_DEFINITIONS_H
29
28
 
 
29
#include <stdint.h>
 
30
 
30
31
#ifndef NO_ALARM_LOOP
31
32
#define NO_ALARM_LOOP           /* lib5 and popen can't use alarm */
32
33
#endif
38
39
#define TEMP_PREFIX     "MY"
39
40
#define LOG_PREFIX      "ML"
40
41
#define PROGDIR         "bin/"
41
 
#ifndef DATADIR
42
 
#define DATADIR         "data/"
43
 
#endif
44
 
#ifndef SHAREDIR
45
 
#define SHAREDIR        "share/"
46
 
#endif
47
 
#ifndef PLUGINDIR
48
 
#define PLUGINDIR       "lib/plugin"
49
 
#endif
50
 
 
51
 
#define ER(X) _(drizzled_error_messages[(X) - ER_ERROR_FIRST])
52
 
#define ER_SAFE(X) (((X) >= ER_ERROR_FIRST && (X) <= ER_ERROR_LAST) ? ER(X) : _("Invalid error code"))
53
 
 
54
 
#define ERRMAPP 1                               /* Errormap f|r my_error */
 
42
 
 
43
#define ER(X) error_message((X))
 
44
 
55
45
#define LIBLEN FN_REFLEN-FN_LEN                 /* Max l{ngd p} dev */
56
46
/* extra 4+4 bytes for slave tmp tables */
57
47
#define MAX_DBKEY_LENGTH (NAME_LEN*2+1+1+4+4)
77
67
/* Max column width +1 */
78
68
#define MAX_FIELD_WIDTH         (MAX_FIELD_CHARLENGTH*MAX_MBWIDTH+1)
79
69
 
80
 
#define MAX_BIT_FIELD_LENGTH    64      /* Max length in bits for bit fields */
81
 
 
82
70
#define MAX_DATE_WIDTH          10      /* YYYY-MM-DD */
83
71
#define MAX_TIME_WIDTH          23      /* -DDDDDD HH:MM:SS.###### */
84
72
#define MAX_DATETIME_FULL_WIDTH 29      /* YYYY-MM-DD HH:MM:SS.###### AM */
108
96
#define EXTRA_RECORDS   10                      /* Extra records in sort */
109
97
#define SCROLL_EXTRA    5                       /* Extra scroll-rows. */
110
98
#define FIELD_NAME_USED ((uint) 32768)          /* Bit set if fieldname used */
111
 
#define FORM_NAME_USED  ((uint) 16384)          /* Bit set if formname used */
112
99
#define FIELD_NR_MASK   16383                   /* To get fieldnumber */
113
100
#define FERR            -1                      /* Error from my_functions */
114
101
#define CREATE_MODE     0                       /* Default mode on new files */
160
147
 
161
148
#define SC_INFO_LENGTH 4                /* Form format constant */
162
149
#define TE_INFO_LENGTH 3
163
 
#define MTYP_NOEMPTY_BIT 128
164
150
 
 
151
#define FRM_VER 6
165
152
#define FRM_VER_TRUE_VARCHAR (FRM_VER+4) /* 10 */
166
153
#define DRIZZLE_VERSION_TABLESPACE_IN_FRM_CGE 50120
167
154
#define DRIZZLE_VERSION_TABLESPACE_IN_FRM 50205
174
161
*/
175
162
#define MIN_TURBOBM_PATTERN_LEN 3
176
163
 
177
 
/* 
 
164
/*
178
165
   Defines for binary logging.
179
166
   Do not decrease the value of BIN_LOG_HEADER_SIZE.
180
167
   Do not even increase it before checking code.
181
168
*/
182
169
 
183
 
#define BIN_LOG_HEADER_SIZE    4 
 
170
#define BIN_LOG_HEADER_SIZE    4
184
171
 
185
172
#define DEFAULT_KEY_CACHE_NAME "default"
186
173
 
192
179
/***************************************************************************
193
180
  Configuration parameters
194
181
****************************************************************************/
195
 
#define ACL_CACHE_SIZE          256
196
182
#define MAX_PASSWORD_LENGTH     32
197
 
#define HOST_CACHE_SIZE         128
198
183
#define MAX_ACCEPT_RETRY        10      // Test accept this many times
199
184
#define MAX_FIELDS_BEFORE_HASH  32
200
185
#define USER_VARS_HASH_SIZE     16
201
186
#define TABLE_OPEN_CACHE_MIN    64
202
 
#define TABLE_OPEN_CACHE_DEFAULT 64
 
187
#define TABLE_OPEN_CACHE_DEFAULT 1024
203
188
 
204
 
/* 
 
189
/*
205
190
 Value of 9236 discovered through binary search 2006-09-26 on Ubuntu Dapper
206
 
 Drake, libc6 2.3.6-0ubuntu2, Linux kernel 2.6.15-27-686, on x86.  (Added 
 
191
 Drake, libc6 2.3.6-0ubuntu2, Linux kernel 2.6.15-27-686, on x86.  (Added
207
192
 100 bytes as reasonable buffer against growth and other environments'
208
193
 requirements.)
209
194
 
215
200
#define STACK_MIN_SIZE_FOR_OPEN 1024*80
216
201
#define STACK_BUFF_ALLOC        352     ///< For stack overrun checks
217
202
 
218
 
/** 
 
203
/**
219
204
 * @TODO Move into a drizzled.h since it's only used in drizzled.cc
220
205
 *
221
206
 * @TODO Rename to DRIZZLED_NET_RETRY_COUNT
230
215
#define TRANS_ALLOC_BLOCK_SIZE          4096
231
216
#define TRANS_ALLOC_PREALLOC_SIZE       4096
232
217
#define RANGE_ALLOC_BLOCK_SIZE          4096
233
 
#define ACL_ALLOC_BLOCK_SIZE            1024
234
218
#define UDF_ALLOC_BLOCK_SIZE            1024
235
219
#define TABLE_ALLOC_BLOCK_SIZE          1024
236
 
#define BDB_LOG_ALLOC_BLOCK_SIZE        1024
237
220
#define WARN_ALLOC_BLOCK_SIZE           2048
238
221
#define WARN_ALLOC_PREALLOC_SIZE        1024
239
222
#define PROFILE_ALLOC_BLOCK_SIZE  2048
255
238
#define TIME_FOR_COMPARE   5    // 5 compares == one read
256
239
 
257
240
/**
258
 
  Number of comparisons of table rowids equivalent to reading one row from a 
 
241
  Number of comparisons of table rowids equivalent to reading one row from a
259
242
  table.
260
243
*/
261
244
#define TIME_FOR_COMPARE_ROWID  (TIME_FOR_COMPARE*2)
262
245
 
263
246
/*
264
247
  For sequential disk seeks the cost formula is:
265
 
    DISK_SEEK_BASE_COST + DISK_SEEK_PROP_COST * #blocks_to_skip  
266
 
  
267
 
  The cost of average seek 
 
248
    DISK_SEEK_BASE_COST + DISK_SEEK_PROP_COST * #blocks_to_skip
 
249
 
 
250
  The cost of average seek
268
251
    DISK_SEEK_BASE_COST + DISK_SEEK_PROP_COST*BLOCKS_IN_AVG_SEEK =1.0.
269
252
*/
270
253
#define DISK_SEEK_BASE_COST ((double)0.9)
312
295
#define TEST_PRINT_CACHED_TABLES 1
313
296
#define TEST_NO_KEY_GROUP        2
314
297
#define TEST_MIT_THREAD         4
315
 
#define TEST_BLOCKING           8
316
298
#define TEST_KEEP_TMP_TABLES    16
317
299
#define TEST_READCHECK          64      /**< Force use of readcheck */
318
300
#define TEST_NO_EXTRA           128
363
345
 
364
346
#define portable_sizeof_char_ptr 8
365
347
 
366
 
#define tmp_file_prefix "#sql"                  /**< Prefix for tmp tables */
367
 
#define tmp_file_prefix_length 4
 
348
#define TMP_FILE_PREFIX "#sql"                  /**< Prefix for tmp tables */
 
349
#define TMP_FILE_PREFIX_LENGTH 4
368
350
 
369
351
/* Flags for calc_week() function.  */
370
352
#define WEEK_MONDAY_FIRST    1
371
353
#define WEEK_YEAR            2
372
354
#define WEEK_FIRST_WEEKDAY   4
373
355
 
 
356
/* used in date and time conversions */
 
357
/* Daynumber from year 0 to 9999-12-31 */
 
358
#define MAX_DAY_NUMBER 3652424L
 
359
 
374
360
#define STRING_BUFFER_USUAL_SIZE 80
375
361
 
376
362
/*
381
367
#define IS_EQUAL_PACK_LENGTH 2
382
368
 
383
369
 
 
370
/**
 
371
  Query type constants.
 
372
 
 
373
  QT_ORDINARY -- ordinary SQL query.
 
374
  QT_IS -- SQL query to be shown in INFORMATION_SCHEMA (in utf8 and without
 
375
  character set introducers).
 
376
 
 
377
  @TODO
 
378
 
 
379
  Move this out of here once Stew's done with UDF breakout.  The following headers need it:
 
380
 
 
381
    sql_lex.h --> included by session.h
 
382
    item.h
 
383
    table.h
 
384
    item_func.h
 
385
    item_subselect.h
 
386
    item_timefunc.h
 
387
    item_sum.h
 
388
    item_cmpfunc.h
 
389
    item_strfunc.h
 
390
*/
 
391
enum enum_query_type
 
392
{
 
393
  QT_ORDINARY,
 
394
  QT_IS
 
395
};
 
396
 
 
397
 
 
398
/**
 
399
 * @TODO Move to a separate header?
 
400
 *
 
401
 * It's needed by item.h and field.h, which are both inter-dependent
 
402
 * and contain forward declarations of many structs/classes in the
 
403
 * other header file.
 
404
 *
 
405
 * What is needed is a separate header file that is included
 
406
 * by *both* item.h and field.h to resolve inter-dependencies
 
407
 *
 
408
 * But, probably want to hold off on this until Stew finished the UDF cleanup
 
409
 */
 
410
enum Derivation
 
411
{
 
412
  DERIVATION_IGNORABLE= 5,
 
413
  DERIVATION_COERCIBLE= 4,
 
414
  DERIVATION_SYSCONST= 3,
 
415
  DERIVATION_IMPLICIT= 2,
 
416
  DERIVATION_NONE= 1,
 
417
  DERIVATION_EXPLICIT= 0
 
418
};
 
419
 
 
420
/**
 
421
 * Opening modes for open_temporary_table and open_table_from_share
 
422
 *
 
423
 * @TODO Put this into an appropriate header. It is only needed in:
 
424
 *
 
425
 *    table.cc
 
426
 *    sql_base.cc
 
427
 */
 
428
enum open_table_mode
 
429
{
 
430
  OTM_OPEN= 0,
 
431
  OTM_CREATE= 1,
 
432
  OTM_ALTER= 2
 
433
};
 
434
 
 
435
 
 
436
/**
 
437
 * used by several functions in functions/time directory
 
438
 *
 
439
**/
 
440
enum date_time_format_types
 
441
{
 
442
  TIME_ONLY= 0, TIME_MICROSECOND, DATE_ONLY, DATE_TIME, DATE_TIME_MICROSECOND
 
443
};
 
444
 
 
445
 
 
446
enum enum_parsing_place
 
447
{
 
448
  NO_MATTER
 
449
  , IN_HAVING
 
450
  , SELECT_LIST
 
451
  , IN_WHERE
 
452
  , IN_ON
 
453
};
 
454
 
 
455
enum enum_mysql_completiontype {
 
456
  ROLLBACK_RELEASE= -2
 
457
  , ROLLBACK= 1
 
458
  , ROLLBACK_AND_CHAIN= 7
 
459
  , COMMIT_RELEASE= -1
 
460
  , COMMIT= 0
 
461
  , COMMIT_AND_CHAIN= 6
 
462
};
 
463
 
 
464
enum enum_check_fields
 
465
{
 
466
  CHECK_FIELD_IGNORE
 
467
  , CHECK_FIELD_WARN
 
468
  , CHECK_FIELD_ERROR_FOR_NULL
 
469
};
 
470
 
 
471
enum enum_var_type
 
472
{
 
473
  OPT_DEFAULT= 0
 
474
  , OPT_SESSION
 
475
  , OPT_GLOBAL
 
476
};
 
477
 
 
478
 
 
479
typedef uint64_t query_id_t;
 
480
typedef void *range_seq_t;
 
481
 
 
482
 
 
483
/**
 
484
   The maximum is defined as (ULONG_MAX/1000) with 4 bytes uint32_t
 
485
*/
 
486
static const uint32_t SLAVE_MAX_HEARTBEAT_PERIOD= 4294967;
 
487
 
 
488
#define SLAVE_NET_TIMEOUT  3600
 
489
 
 
490
#define MAX_SLAVE_ERROR    2000
 
491
 
 
492
/* masks for start/stop operations on io and sql slave threads */
 
493
#define SLAVE_IO  1
 
494
#define SLAVE_SQL 2
 
495
 
 
496
#ifndef NO_HASH
 
497
#define NO_HASH                         /* Not yet implemented */
 
498
#endif
 
499
 
 
500
// the following is for checking tables
 
501
 
 
502
#define HA_ADMIN_ALREADY_DONE     1
 
503
#define HA_ADMIN_OK               0
 
504
#define HA_ADMIN_NOT_IMPLEMENTED -1
 
505
#define HA_ADMIN_FAILED          -2
 
506
#define HA_ADMIN_CORRUPT         -3
 
507
#define HA_ADMIN_INTERNAL_ERROR  -4
 
508
#define HA_ADMIN_INVALID         -5
 
509
#define HA_ADMIN_REJECT          -6
 
510
#define HA_ADMIN_TRY_ALTER       -7
 
511
#define HA_ADMIN_NEEDS_UPGRADE  -10
 
512
#define HA_ADMIN_NEEDS_ALTER    -11
 
513
#define HA_ADMIN_NEEDS_CHECK    -12
 
514
 
 
515
 
 
516
#define HA_ADD_INDEX                  (0)
 
517
#define HA_DROP_INDEX                 (1)
 
518
#define HA_ALTER_INDEX                (2)
 
519
#define HA_RENAME_INDEX               (3)
 
520
#define HA_ADD_UNIQUE_INDEX           (4)
 
521
#define HA_DROP_UNIQUE_INDEX          (5)
 
522
#define HA_ALTER_UNIQUE_INDEX         (6)
 
523
#define HA_RENAME_UNIQUE_INDEX        (7)
 
524
#define HA_ADD_PK_INDEX               (8)
 
525
#define HA_DROP_PK_INDEX              (9)
 
526
#define HA_ALTER_PK_INDEX             (10)
 
527
#define HA_ADD_COLUMN                 (11)
 
528
#define HA_DROP_COLUMN                (12)
 
529
#define HA_CHANGE_COLUMN              (13)
 
530
#define HA_ALTER_COLUMN_NAME          (14)
 
531
#define HA_ALTER_COLUMN_TYPE          (15)
 
532
#define HA_ALTER_COLUMN_ORDER         (16)
 
533
#define HA_ALTER_COLUMN_NULLABLE      (17)
 
534
#define HA_COLUMN_DEFAULT_VALUE       (18)
 
535
#define HA_COLUMN_STORAGE             (19)
 
536
#define HA_COLUMN_FORMAT              (20)
 
537
#define HA_ADD_FOREIGN_KEY            (21)
 
538
#define HA_DROP_FOREIGN_KEY           (22)
 
539
#define HA_ALTER_FOREIGN_KEY          (23)
 
540
#define HA_ADD_CONSTRAINT             (24)
 
541
#define HA_CHANGE_CHARACTER_SET       (30)
 
542
#define HA_SET_DEFAULT_CHARACTER_SET  (31)
 
543
#define HA_CHANGE_AUTOINCREMENT_VALUE (32)
 
544
#define HA_ALTER_STORAGE              (33)
 
545
#define HA_ALTER_TABLESPACE           (34)
 
546
#define HA_ALTER_ROW_FORMAT           (35)
 
547
#define HA_RENAME_TABLE               (36)
 
548
#define HA_ALTER_STORAGE_ENGINE       (37)
 
549
#define HA_RECREATE                   (38)
 
550
#define HA_ALTER_STORED_VCOL          (39)
 
551
/* Remember to increase HA_MAX_ALTER_FLAGS when adding more flags! */
 
552
 
 
553
/* Return values for check_if_supported_alter */
 
554
 
 
555
#define HA_ALTER_ERROR               -1
 
556
#define HA_ALTER_SUPPORTED_WAIT_LOCK  0
 
557
#define HA_ALTER_SUPPORTED_NO_LOCK    1
 
558
#define HA_ALTER_NOT_SUPPORTED        2
 
559
 
 
560
/* Bits in table_flags() to show what database can do */
 
561
 
 
562
#define HA_NO_TRANSACTIONS     (1 << 0) /* Doesn't support transactions */
 
563
#define HA_PARTIAL_COLUMN_READ (1 << 1) /* read may not return all columns */
 
564
#define HA_TABLE_SCAN_ON_INDEX (1 << 2) /* No separate data/index file */
 
565
/*
 
566
  The following should be set if the following is not true when scanning
 
567
  a table with rnd_next()
 
568
  - We will see all rows (including deleted ones)
 
569
  - Row positions are 'table->s->db_record_offset' apart
 
570
  If this flag is not set, filesort will do a postion() call for each matched
 
571
  row to be able to find the row later.
 
572
*/
 
573
#define HA_REC_NOT_IN_SEQ      (1 << 3)
 
574
 
 
575
/*
 
576
  Reading keys in random order is as fast as reading keys in sort order
 
577
  (Used in records.cc to decide if we should use a record cache and by
 
578
  filesort to decide if we should sort key + data or key + pointer-to-row
 
579
*/
 
580
#define HA_FAST_KEY_READ       (1 << 5)
 
581
/*
 
582
  Set the following flag if we on delete should force all key to be read
 
583
  and on update read all keys that changes
 
584
*/
 
585
#define HA_REQUIRES_KEY_COLUMNS_FOR_DELETE (1 << 6)
 
586
#define HA_NULL_IN_KEY         (1 << 7) /* One can have keys with NULL */
 
587
#define HA_DUPLICATE_POS       (1 << 8)    /* ha_position() gives dup row */
 
588
#define HA_NO_BLOBS            (1 << 9) /* Doesn't support blobs */
 
589
#define HA_CAN_INDEX_BLOBS     (1 << 10)
 
590
#define HA_AUTO_PART_KEY       (1 << 11) /* auto-increment in multi-part key */
 
591
#define HA_REQUIRE_PRIMARY_KEY (1 << 12) /* .. and can't create a hidden one */
 
592
#define HA_STATS_RECORDS_IS_EXACT (1 << 13) /* stats.records is exact */
 
593
/*
 
594
  If we get the primary key columns for free when we do an index read
 
595
  It also implies that we have to retrive the primary key when using
 
596
  position() and rnd_pos().
 
597
*/
 
598
#define HA_PRIMARY_KEY_IN_READ_INDEX (1 << 15)
 
599
/*
 
600
  If HA_PRIMARY_KEY_REQUIRED_FOR_POSITION is set, it means that to position()
 
601
  uses a primary key. Without primary key, we can't call position().
 
602
*/
 
603
#define HA_PRIMARY_KEY_REQUIRED_FOR_POSITION (1 << 16)
 
604
#define HA_NOT_DELETE_WITH_CACHE (1 << 18)
 
605
/*
 
606
  The following is we need to a primary key to delete (and update) a row.
 
607
  If there is no primary key, all columns needs to be read on update and delete
 
608
*/
 
609
#define HA_PRIMARY_KEY_REQUIRED_FOR_DELETE (1 << 19)
 
610
#define HA_NO_PREFIX_CHAR_KEYS (1 << 20)
 
611
#define HA_NO_AUTO_INCREMENT   (1 << 23)
 
612
#define HA_HAS_CHECKSUM        (1 << 24)
 
613
/* Table data are stored in separate files (for lower_case_table_names) */
 
614
#define HA_FILE_BASED          (1 << 26)
 
615
#define HA_NEED_READ_RANGE_BUFFER (1 << 29) /* for read_multi_range */
 
616
#define HA_ANY_INDEX_MAY_BE_UNIQUE (1 << 30)
 
617
#define HA_NO_COPY_ON_ALTER    (INT64_C(1) << 31)
 
618
#define HA_HAS_RECORDS         (INT64_C(1) << 32) /* records() gives exact count*/
 
619
#define HA_MRR_CANT_SORT       (INT64_C(1) << 34)
 
620
 
 
621
/*
 
622
  Engine is capable of row-format and statement-format logging,
 
623
  respectively
 
624
*/
 
625
#define HA_BINLOG_ROW_CAPABLE  (INT64_C(1) << 35)
 
626
#define HA_BINLOG_STMT_CAPABLE (INT64_C(1) << 36)
 
627
 
 
628
#define HA_ONLINE_ALTER        (INT64_C(1) << 37)
 
629
 
 
630
/*
 
631
  Set of all binlog flags. Currently only contain the capabilities
 
632
  flags.
 
633
 */
 
634
#define HA_BINLOG_FLAGS (HA_BINLOG_ROW_CAPABLE | HA_BINLOG_STMT_CAPABLE)
 
635
 
 
636
/* bits in index_flags(index_number) for what you can do with index */
 
637
#define HA_READ_NEXT            1       /* TODO really use this flag */
 
638
#define HA_READ_PREV            2       /* supports ::index_prev */
 
639
#define HA_READ_ORDER           4       /* index_next/prev follow sort order */
 
640
#define HA_READ_RANGE           8       /* can find all records in a range */
 
641
#define HA_ONLY_WHOLE_INDEX     16      /* Can't use part key searches */
 
642
#define HA_KEYREAD_ONLY         64      /* Support HA_EXTRA_KEYREAD */
 
643
/*
 
644
  Index scan will not return records in rowid order. Not guaranteed to be
 
645
  set for unordered (e.g. HASH) indexes.
 
646
*/
 
647
#define HA_KEY_SCAN_NOT_ROR     128
 
648
#define HA_DO_INDEX_COND_PUSHDOWN  256 /* Supports Index Condition Pushdown */
 
649
 
 
650
/* operations for disable/enable indexes */
 
651
#define HA_KEY_SWITCH_NONUNIQ      0
 
652
#define HA_KEY_SWITCH_ALL          1
 
653
#define HA_KEY_SWITCH_NONUNIQ_SAVE 2
 
654
#define HA_KEY_SWITCH_ALL_SAVE     3
 
655
 
 
656
/*
 
657
  Note: the following includes binlog and closing 0.
 
658
  so: innodb + bdb + ndb + binlog + myisam + myisammrg + archive +
 
659
      example + csv + heap + blackhole + federated + 0
 
660
  (yes, the sum is deliberately inaccurate)
 
661
  TODO remove the limit, use dynarrays
 
662
*/
 
663
#define MAX_HA 15
 
664
 
 
665
/*
 
666
  Parameters for open() (in register form->filestat)
 
667
  HA_GET_INFO does an implicit HA_ABORT_IF_LOCKED
 
668
*/
 
669
 
 
670
#define HA_OPEN_KEYFILE         1
 
671
#define HA_OPEN_RNDFILE         2
 
672
#define HA_GET_INDEX            4
 
673
#define HA_GET_INFO             8       /* do a ha_info() after open */
 
674
#define HA_READ_ONLY            16      /* File opened as readonly */
 
675
/* Try readonly if can't open with read and write */
 
676
#define HA_TRY_READ_ONLY        32
 
677
#define HA_WAIT_IF_LOCKED       64      /* Wait if locked on open */
 
678
#define HA_ABORT_IF_LOCKED      128     /* skip if locked on open.*/
 
679
#define HA_BLOCK_LOCK           256     /* unlock when reading some records */
 
680
#define HA_OPEN_TEMPORARY       512
 
681
 
 
682
/* For transactional LOCK Table. handler::lock_table() */
 
683
#define HA_LOCK_IN_SHARE_MODE      F_RDLCK
 
684
#define HA_LOCK_IN_EXCLUSIVE_MODE  F_WRLCK
 
685
 
 
686
/* Some key definitions */
 
687
#define HA_KEY_NULL_LENGTH      1
 
688
#define HA_KEY_BLOB_LENGTH      2
 
689
 
 
690
#define HA_LEX_CREATE_TMP_TABLE 1
 
691
#define HA_LEX_CREATE_IF_NOT_EXISTS 2
 
692
#define HA_LEX_CREATE_TABLE_LIKE 4
 
693
#define HA_OPTION_NO_CHECKSUM   (1L << 17)
 
694
#define HA_OPTION_NO_DELAY_KEY_WRITE (1L << 18)
 
695
#define HA_MAX_REC_LENGTH       65535
 
696
 
 
697
/* Table caching type */
 
698
#define HA_CACHE_TBL_NONTRANSACT 0
 
699
#define HA_CACHE_TBL_NOCACHE     1
 
700
#define HA_CACHE_TBL_ASKTRANSACT 2
 
701
#define HA_CACHE_TBL_TRANSACT    4
 
702
 
 
703
/* Options of START TRANSACTION statement (and later of SET TRANSACTION stmt) */
 
704
#define DRIZZLE_START_TRANS_OPT_WITH_CONS_SNAPSHOT 1
 
705
 
 
706
/* Flags for method is_fatal_error */
 
707
#define HA_CHECK_DUP_KEY 1
 
708
#define HA_CHECK_DUP_UNIQUE 2
 
709
#define HA_CHECK_DUP (HA_CHECK_DUP_KEY + HA_CHECK_DUP_UNIQUE)
 
710
 
 
711
enum legacy_db_type
 
712
{
 
713
  DB_TYPE_UNKNOWN=0,
 
714
  DB_TYPE_FIRST_DYNAMIC=42,
 
715
  DB_TYPE_DEFAULT=127 // Must be last
 
716
};
 
717
 
 
718
enum row_type { ROW_TYPE_NOT_USED=-1, ROW_TYPE_DEFAULT, ROW_TYPE_FIXED,
 
719
                ROW_TYPE_DYNAMIC, ROW_TYPE_COMPRESSED,
 
720
                ROW_TYPE_REDUNDANT, ROW_TYPE_COMPACT, ROW_TYPE_PAGE };
 
721
 
 
722
enum column_format_type { COLUMN_FORMAT_TYPE_NOT_USED= -1,
 
723
                          COLUMN_FORMAT_TYPE_DEFAULT=   0,
 
724
                          COLUMN_FORMAT_TYPE_FIXED=     1,
 
725
                          COLUMN_FORMAT_TYPE_DYNAMIC=   2 };
 
726
 
 
727
enum enum_binlog_func {
 
728
  BFN_RESET_LOGS=        1,
 
729
  BFN_RESET_SLAVE=       2,
 
730
  BFN_BINLOG_WAIT=       3,
 
731
  BFN_BINLOG_END=        4,
 
732
  BFN_BINLOG_PURGE_FILE= 5
 
733
};
 
734
 
 
735
enum enum_binlog_command {
 
736
  LOGCOM_CREATE_TABLE,
 
737
  LOGCOM_ALTER_TABLE,
 
738
  LOGCOM_RENAME_TABLE,
 
739
  LOGCOM_DROP_TABLE,
 
740
  LOGCOM_CREATE_DB,
 
741
  LOGCOM_ALTER_DB,
 
742
  LOGCOM_DROP_DB
 
743
};
 
744
 
 
745
/* struct to hold information about the table that should be created */
 
746
 
 
747
/* Bits in used_fields */
 
748
#define HA_CREATE_USED_AUTO             (1L << 0)
 
749
#ifdef DEAD_OPTIONS
 
750
#define HA_CREATE_USED_UNION            (1L << 2)
 
751
#define HA_CREATE_USED_PASSWORD         (1L << 17)
 
752
#endif
 
753
#define HA_CREATE_USED_INSERT_METHOD    (1L << 3)
 
754
#define HA_CREATE_USED_MIN_ROWS         (1L << 4)
 
755
#define HA_CREATE_USED_MAX_ROWS         (1L << 5)
 
756
#define HA_CREATE_USED_AVG_ROW_LENGTH   (1L << 6)
 
757
#define HA_CREATE_USED_PACK_KEYS        (1L << 7)
 
758
#define HA_CREATE_USED_CHARSET          (1L << 8)
 
759
#define HA_CREATE_USED_DEFAULT_CHARSET  (1L << 9)
 
760
#define HA_CREATE_USED_DATADIR          (1L << 10)
 
761
#define HA_CREATE_USED_INDEXDIR         (1L << 11)
 
762
#define HA_CREATE_USED_ENGINE           (1L << 12)
 
763
#define HA_CREATE_USED_CHECKSUM         (1L << 13)
 
764
#define HA_CREATE_USED_DELAY_KEY_WRITE  (1L << 14)
 
765
#define HA_CREATE_USED_ROW_FORMAT       (1L << 15)
 
766
#define HA_CREATE_USED_COMMENT          (1L << 16)
 
767
#define HA_CREATE_USED_CONNECTION       (1L << 18)
 
768
#define HA_CREATE_USED_KEY_BLOCK_SIZE   (1L << 19)
 
769
#define HA_CREATE_USED_PAGE_CHECKSUM    (1L << 21)
 
770
#define HA_CREATE_USED_BLOCK_SIZE       (1L << 22)
 
771
 
 
772
#define MAXGTRIDSIZE 64
 
773
#define MAXBQUALSIZE 64
 
774
 
 
775
#define COMPATIBLE_DATA_YES 0
 
776
#define COMPATIBLE_DATA_NO  1
 
777
 
 
778
#define UNDEF_NODEGROUP 65535
 
779
#define NOT_A_PARTITION_ID ((uint32_t)-1)
 
780
 
 
781
enum ha_choice { HA_CHOICE_UNDEF, HA_CHOICE_NO, HA_CHOICE_YES };
 
782
 
 
783
/*
 
784
  The below two are not used (and not handled) in this milestone of this WL
 
785
  entry because there seems to be no use for them at this stage of
 
786
  implementation.
 
787
*/
 
788
#define HA_MRR_SINGLE_POINT 1
 
789
#define HA_MRR_FIXED_KEY  2
 
790
 
 
791
/*
 
792
  Indicates that RANGE_SEQ_IF::next(&range) doesn't need to fill in the
 
793
  'range' parameter.
 
794
*/
 
795
#define HA_MRR_NO_ASSOCIATION 4
 
796
 
 
797
/*
 
798
  The MRR user will provide ranges in key order, and MRR implementation
 
799
  must return rows in key order.
 
800
*/
 
801
#define HA_MRR_SORTED 8
 
802
 
 
803
/* MRR implementation doesn't have to retrieve full records */
 
804
#define HA_MRR_INDEX_ONLY 16
 
805
 
 
806
/*
 
807
  The passed memory buffer is of maximum possible size, the caller can't
 
808
  assume larger buffer.
 
809
*/
 
810
#define HA_MRR_LIMITS 32
 
811
 
 
812
 
 
813
/*
 
814
  Flag set <=> default MRR implementation is used
 
815
  (The choice is made by **_info[_const]() function which may set this
 
816
   flag. SQL layer remembers the flag value and then passes it to
 
817
   multi_read_range_init().
 
818
*/
 
819
#define HA_MRR_USE_DEFAULT_IMPL 64
 
820
 
 
821
/*
 
822
  Used only as parameter to multi_range_read_info():
 
823
  Flag set <=> the caller guarantees that the bounds of the scanned ranges
 
824
  will not have NULL values.
 
825
*/
 
826
#define HA_MRR_NO_NULL_ENDPOINTS 128
 
827
 
 
828
enum enum_ha_read_modes { RFIRST, RNEXT, RPREV, RLAST, RKEY, RNEXT_SAME };
 
829
 
 
830
enum enum_tx_isolation { ISO_READ_UNCOMMITTED, ISO_READ_COMMITTED,
 
831
                         ISO_REPEATABLE_READ, ISO_SERIALIZABLE};
 
832
 
 
833
 
 
834
enum SHOW_COMP_OPTION { SHOW_OPTION_YES, SHOW_OPTION_NO, SHOW_OPTION_DISABLED};
 
835
 
 
836
typedef int myf;
 
837
#define MYF(v)          (myf) (v)
 
838
 
 
839
/*
 
840
  When a command is added here, be sure it's also added in mysqld.cc
 
841
  in "struct show_var_st status_vars[]= {" ...
 
842
 
 
843
  If the command returns a result set or is not allowed in stored
 
844
  functions or triggers, please also make sure that
 
845
  sp_get_flags_for_command (sp_head.cc) returns proper flags for the
 
846
  added SQLCOM_.
 
847
*/
 
848
 
 
849
enum enum_sql_command {
 
850
  SQLCOM_SELECT, SQLCOM_CREATE_TABLE, SQLCOM_CREATE_INDEX, SQLCOM_ALTER_TABLE,
 
851
  SQLCOM_UPDATE, SQLCOM_INSERT, SQLCOM_INSERT_SELECT,
 
852
  SQLCOM_DELETE, SQLCOM_TRUNCATE, SQLCOM_DROP_TABLE, SQLCOM_DROP_INDEX,
 
853
  SQLCOM_SHOW_DATABASES, SQLCOM_SHOW_TABLES, SQLCOM_SHOW_FIELDS,
 
854
  SQLCOM_SHOW_KEYS, SQLCOM_SHOW_VARIABLES, SQLCOM_SHOW_STATUS,
 
855
  SQLCOM_SHOW_ENGINE_LOGS, SQLCOM_SHOW_ENGINE_STATUS, SQLCOM_SHOW_ENGINE_MUTEX,
 
856
  SQLCOM_SHOW_PROCESSLIST,
 
857
  SQLCOM_SHOW_CREATE,
 
858
  SQLCOM_SHOW_CREATE_DB,
 
859
  SQLCOM_SHOW_TABLE_STATUS,
 
860
  SQLCOM_LOAD,SQLCOM_SET_OPTION,SQLCOM_LOCK_TABLES,SQLCOM_UNLOCK_TABLES,
 
861
  SQLCOM_CHANGE_DB, SQLCOM_CREATE_DB, SQLCOM_DROP_DB, SQLCOM_ALTER_DB,
 
862
  SQLCOM_REPAIR, SQLCOM_REPLACE, SQLCOM_REPLACE_SELECT,
 
863
  SQLCOM_OPTIMIZE, SQLCOM_CHECK,
 
864
  SQLCOM_ASSIGN_TO_KEYCACHE,
 
865
  SQLCOM_FLUSH, SQLCOM_KILL, SQLCOM_ANALYZE,
 
866
  SQLCOM_ROLLBACK, SQLCOM_ROLLBACK_TO_SAVEPOINT,
 
867
  SQLCOM_COMMIT, SQLCOM_SAVEPOINT, SQLCOM_RELEASE_SAVEPOINT,
 
868
  SQLCOM_SLAVE_START, SQLCOM_SLAVE_STOP,
 
869
  SQLCOM_BEGIN,
 
870
  SQLCOM_RENAME_TABLE,
 
871
  SQLCOM_SHOW_OPEN_TABLES,
 
872
  SQLCOM_DELETE_MULTI, SQLCOM_UPDATE_MULTI,
 
873
  SQLCOM_SHOW_WARNS,
 
874
  SQLCOM_EMPTY_QUERY,
 
875
  SQLCOM_SHOW_ERRORS,
 
876
  SQLCOM_CHECKSUM,
 
877
  SQLCOM_SHOW_PLUGINS,
 
878
  /*
 
879
    When a command is added here, be sure it's also added in mysqld.cc
 
880
    in "struct show_var_st status_vars[]= {" ...
 
881
  */
 
882
  /* This should be the last !!! */
 
883
  SQLCOM_END
 
884
};
 
885
 
 
886
enum enum_duplicates { DUP_ERROR, DUP_REPLACE, DUP_UPDATE };
 
887
 
 
888
enum release_type { RELEASE_NORMAL, RELEASE_WAIT_FOR_DROP };
 
889
 
 
890
/*
 
891
  Make sure that the order of schema_tables and enum_schema_tables are the same.
 
892
*/
 
893
 
 
894
enum enum_schema_tables
 
895
{
 
896
  SCH_CHARSETS= 0,
 
897
  SCH_COLLATIONS,
 
898
  SCH_COLLATION_CHARACTER_SET_APPLICABILITY,
 
899
  SCH_COLUMNS,
 
900
  SCH_GLOBAL_STATUS,
 
901
  SCH_GLOBAL_VARIABLES,
 
902
  SCH_KEY_COLUMN_USAGE,
 
903
  SCH_OPEN_TABLES,
 
904
  SCH_PLUGINS,
 
905
  SCH_PROCESSLIST,
 
906
  SCH_REFERENTIAL_CONSTRAINTS,
 
907
  SCH_SCHEMATA,
 
908
  SCH_SESSION_STATUS,
 
909
  SCH_SESSION_VARIABLES,
 
910
  SCH_STATISTICS,
 
911
  SCH_STATUS,
 
912
  SCH_TABLES,
 
913
  SCH_TABLE_CONSTRAINTS,
 
914
  SCH_TABLE_NAMES,
 
915
  SCH_VARIABLES
 
916
};
 
917
 
 
918
 
 
919
#define MY_I_S_MAYBE_NULL 1
 
920
#define MY_I_S_UNSIGNED   2
 
921
 
 
922
 
 
923
#define SKIP_OPEN_TABLE 0                // do not open table
 
924
#define OPEN_FRM_ONLY   1                // open FRM file only
 
925
#define OPEN_FULL_TABLE 2                // open FRM,MYD, MYI files
 
926
 
 
927
/*
 
928
   "Declared Type Collation"
 
929
   A combination of collation and its derivation.
 
930
 
 
931
  Flags for collation aggregation modes:
 
932
  MY_COLL_ALLOW_SUPERSET_CONV  - allow conversion to a superset
 
933
  MY_COLL_ALLOW_COERCIBLE_CONV - allow conversion of a coercible value
 
934
                                 (i.e. constant).
 
935
  MY_COLL_ALLOW_CONV           - allow any kind of conversion
 
936
                                 (combination of the above two)
 
937
  MY_COLL_DISALLOW_NONE        - don't allow return DERIVATION_NONE
 
938
                                 (e.g. when aggregating for comparison)
 
939
  MY_COLL_CMP_CONV             - combination of MY_COLL_ALLOW_CONV
 
940
                                 and MY_COLL_DISALLOW_NONE
 
941
*/
 
942
 
 
943
#define MY_COLL_ALLOW_SUPERSET_CONV   1
 
944
#define MY_COLL_ALLOW_COERCIBLE_CONV  2
 
945
#define MY_COLL_ALLOW_CONV            3
 
946
#define MY_COLL_DISALLOW_NONE         4
 
947
#define MY_COLL_CMP_CONV              7
 
948
 
 
949
 
 
950
/*
 
951
  This enum is used to report information about monotonicity of function
 
952
  represented by Item* tree.
 
953
  Monotonicity is defined only for Item* trees that represent table
 
954
  partitioning expressions (i.e. have no subselects/user vars/PS parameters
 
955
  etc etc). An Item* tree is assumed to have the same monotonicity properties
 
956
  as its correspoinding function F:
 
957
 
 
958
  [signed] int64_t F(field1, field2, ...) {
 
959
    put values of field_i into table record buffer;
 
960
    return item->val_int();
 
961
  }
 
962
 
 
963
  NOTE
 
964
  At the moment function monotonicity is not well defined (and so may be
 
965
  incorrect) for Item trees with parameters/return types that are different
 
966
  from INT_RESULT, may be NULL, or are unsigned.
 
967
  It will be possible to address this issue once the related partitioning bugs
 
968
  (BUG#16002, BUG#15447, BUG#13436) are fixed.
 
969
*/
 
970
 
 
971
typedef enum monotonicity_info
 
972
{
 
973
   NON_MONOTONIC,              /* none of the below holds */
 
974
   MONOTONIC_INCREASING,       /* F() is unary and (x < y) => (F(x) <= F(y)) */
 
975
   MONOTONIC_STRICT_INCREASING /* F() is unary and (x < y) => (F(x) <  F(y)) */
 
976
} enum_monotonicity_info;
 
977
 
 
978
enum tmp_table_type
 
979
{
 
980
  NO_TMP_TABLE, NON_TRANSACTIONAL_TMP_TABLE, TRANSACTIONAL_TMP_TABLE,
 
981
  INTERNAL_TMP_TABLE, SYSTEM_TMP_TABLE, TMP_TABLE_FRM_FILE_ONLY
 
982
};
 
983
 
 
984
/*
 
985
  Values in this enum are used to indicate how a tables TIMESTAMP field
 
986
  should be treated. It can be set to the current timestamp on insert or
 
987
  update or both.
 
988
  WARNING: The values are used for bit operations. If you change the
 
989
  enum, you must keep the bitwise relation of the values. For example:
 
990
  (int) TIMESTAMP_AUTO_SET_ON_BOTH must be equal to
 
991
  (int) TIMESTAMP_AUTO_SET_ON_INSERT | (int) TIMESTAMP_AUTO_SET_ON_UPDATE.
 
992
  We use an enum here so that the debugger can display the value names.
 
993
*/
 
994
enum timestamp_auto_set_type
 
995
{
 
996
  TIMESTAMP_NO_AUTO_SET= 0, TIMESTAMP_AUTO_SET_ON_INSERT= 1,
 
997
  TIMESTAMP_AUTO_SET_ON_UPDATE= 2, TIMESTAMP_AUTO_SET_ON_BOTH= 3
 
998
};
 
999
#define clear_timestamp_auto_bits(_target_, _bits_) \
 
1000
  (_target_)= (enum timestamp_auto_set_type)((int)(_target_) & ~(int)(_bits_))
 
1001
 
 
1002
/**
 
1003
  Category of table found in the table share.
 
1004
*/
 
1005
enum enum_table_category
 
1006
{
 
1007
  /**
 
1008
    Unknown value.
 
1009
  */
 
1010
  TABLE_UNKNOWN_CATEGORY=0,
 
1011
 
 
1012
  /**
 
1013
    Temporary table.
 
1014
    The table is visible only in the session.
 
1015
    Therefore,
 
1016
    - FLUSH TABLES WITH READ LOCK
 
1017
    - SET GLOBAL READ_ONLY = ON
 
1018
    do not apply to this table.
 
1019
    Note that LOCK Table t FOR READ/WRITE
 
1020
    can be used on temporary tables.
 
1021
    Temporary tables are not part of the table cache.
 
1022
  */
 
1023
  TABLE_CATEGORY_TEMPORARY=1,
 
1024
 
 
1025
  /**
 
1026
    User table.
 
1027
    These tables do honor:
 
1028
    - LOCK Table t FOR READ/WRITE
 
1029
    - FLUSH TABLES WITH READ LOCK
 
1030
    - SET GLOBAL READ_ONLY = ON
 
1031
    User tables are cached in the table cache.
 
1032
  */
 
1033
  TABLE_CATEGORY_USER=2,
 
1034
 
 
1035
  /**
 
1036
    Information schema tables.
 
1037
    These tables are an interface provided by the system
 
1038
    to inspect the system metadata.
 
1039
    These tables do *not* honor:
 
1040
    - LOCK Table t FOR READ/WRITE
 
1041
    - FLUSH TABLES WITH READ LOCK
 
1042
    - SET GLOBAL READ_ONLY = ON
 
1043
    as there is no point in locking explicitely
 
1044
    an INFORMATION_SCHEMA table.
 
1045
    Nothing is directly written to information schema tables.
 
1046
    Note that this value is not used currently,
 
1047
    since information schema tables are not shared,
 
1048
    but implemented as session specific temporary tables.
 
1049
  */
 
1050
  /*
 
1051
    TODO: Fixing the performance issues of I_S will lead
 
1052
    to I_S tables in the table cache, which should use
 
1053
    this table type.
 
1054
  */
 
1055
  TABLE_CATEGORY_INFORMATION
 
1056
};
 
1057
 
 
1058
/* Information for one open table */
 
1059
enum index_hint_type
 
1060
{
 
1061
  INDEX_HINT_IGNORE,
 
1062
  INDEX_HINT_USE,
 
1063
  INDEX_HINT_FORCE
 
1064
};
 
1065
 
 
1066
 
 
1067
enum enum_enable_or_disable { LEAVE_AS_IS, ENABLE, DISABLE };
 
1068
enum enum_delay_key_write { DELAY_KEY_WRITE_NONE, DELAY_KEY_WRITE_ON,
 
1069
                            DELAY_KEY_WRITE_ALL };
 
1070
enum enum_slave_exec_mode { SLAVE_EXEC_MODE_STRICT,
 
1071
                            SLAVE_EXEC_MODE_IDEMPOTENT,
 
1072
                            SLAVE_EXEC_MODE_LAST_BIT};
 
1073
enum enum_mark_columns
 
1074
{ MARK_COLUMNS_NONE, MARK_COLUMNS_READ, MARK_COLUMNS_WRITE};
 
1075
 
 
1076
enum enum_filetype { FILETYPE_CSV, FILETYPE_XML };
 
1077
 
 
1078
enum find_item_error_report_type {REPORT_ALL_ERRORS, REPORT_EXCEPT_NOT_FOUND,
 
1079
                                  IGNORE_ERRORS, REPORT_EXCEPT_NON_UNIQUE,
 
1080
                                  IGNORE_EXCEPT_NON_UNIQUE};
 
1081
 
 
1082
enum enum_schema_table_state
 
1083
{
 
1084
  NOT_PROCESSED= 0,
 
1085
  PROCESSED_BY_CREATE_SORT_INDEX,
 
1086
  PROCESSED_BY_JOIN_EXEC
 
1087
};
 
1088
 
 
1089
/*
 
1090
 * The following are for the interface with the .frm file
 
1091
 */
 
1092
 
 
1093
#define FIELDFLAG_DECIMAL    1
 
1094
#define FIELDFLAG_BINARY    1  // Shares same flag
 
1095
#define FIELDFLAG_NUMBER    2
 
1096
#define FIELDFLAG_DECIMAL_POSITION      4
 
1097
#define FIELDFLAG_PACK      120  // Bits used for packing
 
1098
#define FIELDFLAG_INTERVAL    256     // mangled with decimals!
 
1099
#define FIELDFLAG_BLOB      1024  // mangled with decimals!
 
1100
 
 
1101
#define FIELDFLAG_NO_DEFAULT    16384   /* sql */
 
1102
#define FIELDFLAG_SUM      ((uint32_t) 32768)// predit: +#fieldflag
 
1103
#define FIELDFLAG_MAYBE_NULL    ((uint32_t) 32768)// sql
 
1104
#define FIELDFLAG_HEX_ESCAPE    ((uint32_t) 0x10000)
 
1105
#define FIELDFLAG_PACK_SHIFT    3
 
1106
#define FIELDFLAG_DEC_SHIFT    8
 
1107
#define FIELDFLAG_MAX_DEC    31
 
1108
 
 
1109
#define MTYP_TYPENR(type) (type & 127)  /* Remove bits from type */
 
1110
 
 
1111
#define f_is_dec(x)     ((x) & FIELDFLAG_DECIMAL)
 
1112
#define f_is_num(x)     ((x) & FIELDFLAG_NUMBER)
 
1113
#define f_is_decimal_precision(x)  ((x) & FIELDFLAG_DECIMAL_POSITION)
 
1114
#define f_is_packed(x)  ((x) & FIELDFLAG_PACK)
 
1115
#define f_packtype(x)   (((x) >> FIELDFLAG_PACK_SHIFT) & 15)
 
1116
#define f_decimals(x)   ((uint8_t) (((x) >> FIELDFLAG_DEC_SHIFT) & \
 
1117
                                     FIELDFLAG_MAX_DEC))
 
1118
#define f_is_alpha(x)   (!f_is_num(x))
 
1119
#define f_is_binary(x)  ((x) & FIELDFLAG_BINARY) // 4.0- compatibility
 
1120
#define f_is_enum(x)    (((x) & (FIELDFLAG_INTERVAL | FIELDFLAG_NUMBER)) == \
 
1121
                         FIELDFLAG_INTERVAL)
 
1122
#define f_is_blob(x)    (((x) & (FIELDFLAG_BLOB | FIELDFLAG_NUMBER)) == \
 
1123
                         FIELDFLAG_BLOB)
 
1124
#define f_is_equ(x)     ((x) & (1+2+FIELDFLAG_PACK+31*256))
 
1125
#define f_settype(x)    (((int) x) << FIELDFLAG_PACK_SHIFT)
 
1126
#define f_maybe_null(x) (x & FIELDFLAG_MAYBE_NULL)
 
1127
#define f_no_default(x) (x & FIELDFLAG_NO_DEFAULT)
 
1128
#define f_is_hex_escape(x) ((x) & FIELDFLAG_HEX_ESCAPE)
 
1129
 
384
1130
#endif /* DRIZZLE_SERVER_DEFINITIONS_H */
 
1131