~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_class.h

MergedĀ inĀ latest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
/* Classes in mysql */
 
22
 
22
23
#include <drizzled/global.h>
23
24
#include "log.h"
24
25
#include "rpl_tblmap.h"
 
26
#include <libdrizzle/password.h>     // rand_struct
25
27
 
26
28
class Relay_log_info;
27
29
 
35
37
enum enum_ha_read_modes { RFIRST, RNEXT, RPREV, RLAST, RKEY, RNEXT_SAME };
36
38
enum enum_duplicates { DUP_ERROR, DUP_REPLACE, DUP_UPDATE };
37
39
enum enum_delay_key_write { DELAY_KEY_WRITE_NONE, DELAY_KEY_WRITE_ON,
38
 
                            DELAY_KEY_WRITE_ALL };
 
40
                            DELAY_KEY_WRITE_ALL };
39
41
enum enum_slave_exec_mode { SLAVE_EXEC_MODE_STRICT,
40
42
                            SLAVE_EXEC_MODE_IDEMPOTENT,
41
43
                            SLAVE_EXEC_MODE_LAST_BIT};
317
319
    In slave thread we need to know in behalf of which
318
320
    thread the query is being run to replicate temp tables properly
319
321
  */
320
 
  my_thread_id pseudo_thread_id;
 
322
  /* TODO: change this to my_thread_id - but have to fix set_var first */
 
323
  uint64_t pseudo_thread_id;
321
324
 
322
325
  bool low_priority_updates;
323
326
  bool new_mode;
1343
1346
 
1344
1347
  enum killed_state
1345
1348
  {
1346
 
    NOT_KILLED=0,
1347
 
    KILL_BAD_DATA=1,
1348
 
    KILL_CONNECTION=ER_SERVER_SHUTDOWN,
1349
 
    KILL_QUERY=ER_QUERY_INTERRUPTED,
 
1349
    NOT_KILLED,
 
1350
    KILL_BAD_DATA,
 
1351
    KILL_CONNECTION,
 
1352
    KILL_QUERY,
1350
1353
    KILLED_NO_VALUE      /* means neither of the states */
1351
1354
  };
1352
1355
  killed_state volatile killed;