~patrick-crews/drizzle/qp-merge2

« back to all changes in this revision

Viewing changes to drizzled/common.h

  • Committer: Patrick Crews
  • Date: 2012-02-20 22:04:21 UTC
  • mfrom: (2483.1.30 drizzle)
  • Revision ID: gleebix@gmail.com-20120220220421-9a77n2wnglo211r0
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
   This is included in the server and in the client.
32
32
   Options for select set by the yacc parser (stored in lex->options).
33
33
 
34
 
   XXX:
35
 
   log_event.h defines OPTIONS_WRITTEN_TO_BIN_LOG to specify what THD
36
 
   options list are written into binlog. These options can NOT change their
37
 
   values, or it will break replication between version.
38
 
 
39
34
   context is encoded as following:
40
35
   SELECT - Select_Lex_Node::options
41
36
   THD    - THD::options
56
51
#define OPTION_BIG_SELECTS      (UINT64_C(1) << 9)     // THD, user
57
52
#define TMP_TABLE_ALL_COLUMNS   (UINT64_C(1) << 12)    // SELECT, intern
58
53
#define OPTION_WARNINGS         (UINT64_C(1) << 13)    // THD, user
59
 
#define OPTION_AUTO_IS_NULL     (UINT64_C(1) << 14)    // THD, user, binlog
 
54
#define OPTION_AUTO_IS_NULL     (UINT64_C(1) << 14)    // THD, user
60
55
#define OPTION_FOUND_COMMENT    (UINT64_C(1) << 15)    // SELECT, intern, parser
61
56
#define OPTION_BUFFER_RESULT    (UINT64_C(1) << 17)    // SELECT, user
62
57
#define OPTION_NOT_AUTOCOMMIT   (UINT64_C(1) << 19)    // THD, user
67
62
 
68
63
/** The following can be set when importing tables in a 'wrong order'
69
64
   to suppress foreign key checks */
70
 
#define OPTION_NO_FOREIGN_KEY_CHECKS    (UINT64_C(1) << 26) // THD, user, binlog
 
65
#define OPTION_NO_FOREIGN_KEY_CHECKS    (UINT64_C(1) << 26) // THD, user
71
66
/** The following speeds up inserts to InnoDB tables by suppressing unique
72
67
   key checks in some cases */
73
 
#define OPTION_RELAXED_UNIQUE_CHECKS    (UINT64_C(1) << 27) // THD, user, binlog
 
68
#define OPTION_RELAXED_UNIQUE_CHECKS    (UINT64_C(1) << 27) // THD, user
74
69
#define SELECT_NO_UNLOCK                (UINT64_C(1) << 28) // SELECT, intern
75
70
/** Flag set if setup_tables already done */
76
71
#define OPTION_SETUP_TABLES_DONE        (UINT64_C(1) << 30) // intern