~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definitions.h

  • Committer: Brian Aker
  • Date: 2008-08-20 03:21:20 UTC
  • Revision ID: brian@tangent.org-20080820032120-lv3c5pu3owhex19j
flag cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
#define CHANGE_FRM              2       /* openfrm: open .frm as O_RDWR */
148
148
#define READ_KEYINFO            4       /* L{s nyckeldata fr}n filen */
149
149
#define EXTRA_RECORD            8       /* Reservera plats f|r extra record */
150
 
#define DONT_OPEN_TABLES        8       /* Don't open database-files (frd) */
151
 
#define DONT_OPEN_MASTER_REG    16      /* Don't open first reg-file (prt) */
152
 
#define EXTRA_LONG_RECORD       16      /* Plats f|r dubbel s|k-record */
153
 
#define COMPUTE_TYPES           32      /* Kontrollera type f|r f{ltena */
154
 
#define SEARCH_PRG              64      /* S|k efter registret i 'prg_dev' */
155
 
#define READ_USED_NAMES         128     /* L{s anv{nda formul{rnamn */
156
150
#define DONT_GIVE_ERROR         256     /* Don't do frm_error on openfrm  */
157
151
#define DELAYED_OPEN            4096    /* Open table later */
158
 
#define OPEN_VIEW               8192    /* Allow open on view */
159
 
#define OPEN_VIEW_NO_PARSE     16384    /* Open frm only if it's a view,
160
 
                                           but do not parse view itself */
161
152
/**
162
153
  This flag is used in function get_all_tables() which fills
163
154
  I_S tables with data which are retrieved from frm files and storage engine
173
164
#define OPEN_TABLE_ONLY        OPEN_FRM_FILE_ONLY*2
174
165
/**
175
166
  This flag is used in function get_all_tables() which fills
176
 
  I_S tables with data which are retrieved from frm files and storage engine
177
 
  The flag means that we need to process views only to get necessary data.
178
 
  Tables are not processed.
179
 
*/
180
 
#define OPEN_VIEW_ONLY         OPEN_TABLE_ONLY*2
181
 
/**
182
 
  This flag is used in function get_all_tables() which fills
183
 
  I_S tables with data which are retrieved from frm files and storage engine.
184
 
  The flag means that we need to open a view using
185
 
  open_normal_and_derived_tables() function.
186
 
*/
187
 
#define OPEN_VIEW_FULL         OPEN_VIEW_ONLY*2
188
 
/**
189
 
  This flag is used in function get_all_tables() which fills
190
167
  I_S tables with data which are retrieved from frm files and storage engine.
191
168
  The flag means that I_S table uses optimization algorithm.
192
169
*/
193
 
#define OPTIMIZE_I_S_TABLE     OPEN_VIEW_FULL*2
 
170
#define OPTIMIZE_I_S_TABLE     OPEN_TABLE_ONLY*2
194
171
 
195
172
#define SC_INFO_LENGTH 4                /* Form format constant */
196
173
#define TE_INFO_LENGTH 3
368
345
#define MODE_ONLY_FULL_GROUP_BY         32
369
346
#define MODE_NO_UNSIGNED_SUBTRACTION    64
370
347
#define MODE_NO_DIR_IN_CREATE           128
371
 
#define MODE_POSTGRESQL                 256
372
 
#define MODE_ORACLE                     512
373
 
#define MODE_MSSQL                      1024
374
 
#define MODE_DB2                        2048
375
 
#define MODE_MAXDB                      4096
376
348
#define MODE_NO_KEY_OPTIONS             8192
377
349
#define MODE_NO_TABLE_OPTIONS           16384
378
350
#define MODE_NO_FIELD_OPTIONS           32768
386
358
#define MODE_NO_ZERO_IN_DATE            (MODE_STRICT_ALL_TABLES*2)
387
359
#define MODE_NO_ZERO_DATE               (MODE_NO_ZERO_IN_DATE*2)
388
360
#define MODE_INVALID_DATES              (MODE_NO_ZERO_DATE*2)
389
 
#define MODE_ERROR_FOR_DIVISION_BY_ZERO (MODE_INVALID_DATES*2)
390
 
#define MODE_TRADITIONAL                (MODE_ERROR_FOR_DIVISION_BY_ZERO*2)
391
 
#define MODE_NO_AUTO_CREATE_USER        (MODE_TRADITIONAL*2)
392
 
#define MODE_HIGH_NOT_PRECEDENCE        (MODE_NO_AUTO_CREATE_USER*2)
393
 
#define MODE_NO_ENGINE_SUBSTITUTION     (MODE_HIGH_NOT_PRECEDENCE*2)
394
 
#define MODE_PAD_CHAR_TO_FULL_LENGTH    (1ULL << 31)
395
361
 
396
362
/* @@optimizer_switch flags */
397
363
#define OPTIMIZER_SWITCH_NO_MATERIALIZATION 1
398
364
#define OPTIMIZER_SWITCH_NO_SEMIJOIN 2
399
365
 
400
 
/*
401
 
  Replication uses 8 bytes to store SQL_MODE in the binary log. The day you
402
 
  use strictly more than 64 bits by adding one more define above, you should
403
 
  contact the replication team because the replication code should then be
404
 
  updated (to store more bytes on disk).
405
 
 
406
 
  NOTE: When adding new SQL_MODE types, make sure to also add them to
407
 
  the scripts used for creating the MySQL system tables
408
 
  in scripts/mysql_system_tables.sql and scripts/mysql_system_tables_fix.sql
409
 
 
410
 
*/
411
 
#define RAID_BLOCK_SIZE 1024
412
 
 
413
366
#define MY_CHARSET_BIN_MB_MAXLEN 1
414
367
 
415
368
// uncachable cause