~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definitions.h

  • Committer: Brian Aker
  • Date: 2009-05-06 05:44:32 UTC
  • mto: This revision was merged to the branch mainline in revision 1007.
  • Revision ID: brian@gaz-20090506054432-0omziuplq7fa2f4n
Next bit of ALTER TABLE wackiness.

Show diffs side-by-side

added added

removed removed

Lines of Context:
596
596
#define HA_HAS_RECORDS         (INT64_C(1) << 32) /* records() gives exact count*/
597
597
#define HA_MRR_CANT_SORT       (INT64_C(1) << 34)
598
598
 
599
 
/*
600
 
  Engine is capable of row-format and statement-format logging,
601
 
  respectively
602
 
*/
603
 
#define HA_BINLOG_ROW_CAPABLE  (INT64_C(1) << 35)
604
 
#define HA_BINLOG_STMT_CAPABLE (INT64_C(1) << 36)
605
 
 
606
 
#define HA_ONLINE_ALTER        (INT64_C(1) << 37)
607
 
 
608
 
/*
609
 
  Set of all binlog flags. Currently only contain the capabilities
610
 
  flags.
611
 
 */
612
 
#define HA_BINLOG_FLAGS (HA_BINLOG_ROW_CAPABLE | HA_BINLOG_STMT_CAPABLE)
613
 
 
614
599
/* bits in index_flags(index_number) for what you can do with index */
615
600
#define HA_READ_NEXT            1       /* TODO really use this flag */
616
601
#define HA_READ_PREV            2       /* supports ::index_prev */
672
657
#define HA_OPTION_NO_DELAY_KEY_WRITE (1L << 18)
673
658
#define HA_MAX_REC_LENGTH       65535
674
659
 
675
 
/* Table caching type */
676
 
#define HA_CACHE_TBL_NONTRANSACT 0
677
 
#define HA_CACHE_TBL_NOCACHE     1
678
 
#define HA_CACHE_TBL_ASKTRANSACT 2
679
 
#define HA_CACHE_TBL_TRANSACT    4
680
 
 
681
660
/* Options of START TRANSACTION statement (and later of SET TRANSACTION stmt) */
682
661
#define DRIZZLE_START_TRANS_OPT_WITH_CONS_SNAPSHOT 1
683
662
 
695
674
                          COLUMN_FORMAT_TYPE_FIXED=     1,
696
675
                          COLUMN_FORMAT_TYPE_DYNAMIC=   2 };
697
676
 
698
 
enum enum_binlog_func {
699
 
  BFN_RESET_LOGS=        1,
700
 
  BFN_RESET_SLAVE=       2,
701
 
  BFN_BINLOG_WAIT=       3,
702
 
  BFN_BINLOG_END=        4,
703
 
  BFN_BINLOG_PURGE_FILE= 5
704
 
};
705
 
 
706
 
enum enum_binlog_command {
707
 
  LOGCOM_CREATE_TABLE,
708
 
  LOGCOM_ALTER_TABLE,
709
 
  LOGCOM_RENAME_TABLE,
710
 
  LOGCOM_DROP_TABLE,
711
 
  LOGCOM_CREATE_DB,
712
 
  LOGCOM_ALTER_DB,
713
 
  LOGCOM_DROP_DB
714
 
};
715
 
 
716
677
/* struct to hold information about the table that should be created */
717
678
 
718
679
/* Bits in used_fields */
747
708
#define COMPATIBLE_DATA_NO  1
748
709
 
749
710
#define UNDEF_NODEGROUP 65535
750
 
#define NOT_A_PARTITION_ID ((uint32_t)-1)
751
711
 
752
712
enum ha_choice { HA_CHOICE_UNDEF, HA_CHOICE_NO, HA_CHOICE_YES };
753
713
 
1029
989
enum enum_enable_or_disable { LEAVE_AS_IS, ENABLE, DISABLE };
1030
990
enum enum_delay_key_write { DELAY_KEY_WRITE_NONE, DELAY_KEY_WRITE_ON,
1031
991
                            DELAY_KEY_WRITE_ALL };
1032
 
enum enum_slave_exec_mode { SLAVE_EXEC_MODE_STRICT,
1033
 
                            SLAVE_EXEC_MODE_IDEMPOTENT,
1034
 
                            SLAVE_EXEC_MODE_LAST_BIT};
1035
992
enum enum_mark_columns
1036
993
{ MARK_COLUMNS_NONE, MARK_COLUMNS_READ, MARK_COLUMNS_WRITE};
1037
994