~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definitions.h

  • Committer: Lee Bieber
  • Date: 2011-01-12 02:31:03 UTC
  • mfrom: (2068.7.5 session-fix)
  • mto: This revision was merged to the branch mainline in revision 2076.
  • Revision ID: kalebral@gmail.com-20110112023103-nmz26cv1j32jc6n3
Merge Brian - fix bug 527084 - DROP TABLE: getTableDefiniton returns EEXIST but doDropTable returns ENOENT leads to SIGSEGV

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
#define MAX_REF_PARTS 16                        /* Max parts used as ref */
60
60
#define MAX_KEY_LENGTH 4096                     /* max possible key */
61
61
#define MAX_KEY_LENGTH_DECIMAL_WIDTH 4          /* strlen("4096") */
62
 
 
63
62
#if SIZEOF_OFF_T > 4
64
63
#define MAX_REFLENGTH 8                         /* Max length for record ref */
65
64
#else
107
106
*/
108
107
#define MIN_TURBOBM_PATTERN_LEN 3
109
108
 
 
109
/*
 
110
   Defines for binary logging.
 
111
   Do not decrease the value of BIN_LOG_HEADER_SIZE.
 
112
   Do not even increase it before checking code.
 
113
*/
 
114
 
 
115
#define BIN_LOG_HEADER_SIZE    4
 
116
 
110
117
/* Below are #defines that used to be in mysql_priv.h */
111
118
/***************************************************************************
112
119
  Configuration parameters
190
197
/* The following can also be changed from the command line */
191
198
#define DEFAULT_CONCURRENCY     10
192
199
#define FLUSH_TIME              0               /**< Don't flush tables */
 
200
#define MAX_CONNECT_ERRORS      10              ///< errors before disabling host
 
201
 
 
202
/* Bits from testflag */
 
203
enum test_flag_bit
 
204
{
 
205
  TEST_PRINT_CACHED_TABLES= 1,
 
206
  TEST_NO_KEY_GROUP,
 
207
  TEST_MIT_THREAD,
 
208
  TEST_KEEP_TMP_TABLES,
 
209
  TEST_READCHECK, /**< Force use of readcheck */
 
210
  TEST_NO_EXTRA,
 
211
  TEST_CORE_ON_SIGNAL, /**< Give core if signal */
 
212
  TEST_NO_STACKTRACE,
 
213
  TEST_SIGINT, /**< Allow sigint on threads */
 
214
  TEST_SYNCHRONIZATION /**< get server to do sleep in some places */
 
215
};
193
216
 
194
217
/* Bits for different SQL modes modes (including ANSI mode) */
195
218
#define MODE_NO_ZERO_DATE               (2)
387
410
#define MY_COLL_DISALLOW_NONE         4
388
411
#define MY_COLL_CMP_CONV              7
389
412
 
390
 
inline static void clear_timestamp_auto_bits(timestamp_auto_set_type &_target_, 
391
 
                                             timestamp_auto_set_type _bits_)
 
413
inline static void clear_timestamp_auto_bits(enum timestamp_auto_set_type &_target_, 
 
414
                                             const enum timestamp_auto_set_type _bits_)
392
415
{
393
 
  _target_= static_cast<timestamp_auto_set_type>(_target_ & ~_bits_);
 
416
  _target_= (enum timestamp_auto_set_type)((int)(_target_) & ~_bits_);
394
417
}
395
418
 
396
419
/*
488
511
#define uint64_t2double(A) ((double) (uint64_t) (A))
489
512
#endif
490
513
 
491
 
#ifndef int64_t2double
492
 
#define int64_t2double(A) ((double) (int64_t) (A))
493
 
#endif
494
 
 
495
514
#ifndef offsetof
496
515
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
497
516
#endif