~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2008-11-24 22:07:28 UTC
  • mfrom: (590.2.18 devel)
  • Revision ID: brian@tangent.org-20081124220728-4qhh08ktv5x4o0jo
Merge of Monty's (plus fix for increment style/useless +1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include <mysys/my_tree.h>
35
35
#include <drizzled/handler.h>
36
36
#include <drizzled/sql_error.h>
 
37
#include <bitset>
37
38
 
38
39
class Relay_log_info;
39
40
 
2262
2263
 
2263
2264
/* Bits in sql_command_flags */
2264
2265
 
2265
 
#define CF_CHANGES_DATA         1
2266
 
#define CF_HAS_ROW_COUNT        2
2267
 
#define CF_STATUS_COMMAND       4
2268
 
#define CF_SHOW_TABLE_COMMAND   8
2269
 
#define CF_WRITE_LOGS_COMMAND  16
 
2266
enum sql_command_flag_bits {
 
2267
  CF_BIT_CHANGES_DATA,
 
2268
  CF_BIT_HAS_ROW_COUNT,
 
2269
  CF_BIT_STATUS_COMMAND,
 
2270
  CF_BIT_SHOW_TABLE_COMMAND,
 
2271
  CF_BIT_WRITE_LOGS_COMMAND,
 
2272
  CF_BIT_SIZE
 
2273
};
 
2274
 
 
2275
static const std::bitset<CF_BIT_SIZE> CF_CHANGES_DATA(1 << CF_BIT_CHANGES_DATA);
 
2276
static const std::bitset<CF_BIT_SIZE> CF_HAS_ROW_COUNT(1 << CF_BIT_HAS_ROW_COUNT);
 
2277
static const std::bitset<CF_BIT_SIZE> CF_STATUS_COMMAND(1 << CF_BIT_STATUS_COMMAND);
 
2278
static const std::bitset<CF_BIT_SIZE> CF_SHOW_TABLE_COMMAND(1 << CF_BIT_SHOW_TABLE_COMMAND);
 
2279
static const std::bitset<CF_BIT_SIZE> CF_WRITE_LOGS_COMMAND(1 << CF_BIT_WRITE_LOGS_COMMAND);
2270
2280
 
2271
2281
/* Functions in sql_class.cc */
2272
2282