~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/alter_info.h

  • Committer: Lee Bieber
  • Date: 2011-03-18 04:10:25 UTC
  • mfrom: (2241.1.2 build)
  • Revision ID: kalebral@gmail.com-20110318041025-1xoj1azy6zobhnbm
Merge Stewart - refactoring of default values
Merge Olaf - more refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#pragma once
26
26
 
27
27
#include <drizzled/alter_column.h>
28
 
#include <drizzled/alter_drop.h>
29
28
#include <drizzled/base.h>
30
29
#include <drizzled/enum.h>
31
30
#include <drizzled/key.h>
62
61
  ALTER_FOREIGN_KEY
63
62
};
64
63
 
65
 
enum tablespace_op_type
66
 
{
67
 
  NO_TABLESPACE_OP,
68
 
  DISCARD_TABLESPACE,
69
 
  IMPORT_TABLESPACE
70
 
};
71
 
 
72
64
/**
73
65
 * Contains information about the parsed CREATE or ALTER TABLE statement.
74
66
 *
78
70
class AlterInfo
79
71
{
80
72
public:
81
 
  typedef std::list<AlterDrop> drop_list_t;
82
73
  typedef std::list<AlterColumn> alter_list_t;
83
 
  
84
 
  drop_list_t drop_list;
 
74
 
85
75
  alter_list_t alter_list;
86
76
  List<Key> key_list;
87
77
  List<CreateField> create_list;
88
 
  message::AlterTable alter_proto;
 
78
  message::AddedFields added_fields_proto;
89
79
  std::bitset<32> flags;
90
 
  enum enum_enable_or_disable keys_onoff;
91
 
  enum tablespace_op_type tablespace_op;
92
80
  uint32_t no_parts;
93
 
  enum ha_build_method build_method;
94
81
  bool error_if_not_empty;
95
82
 
96
83
  AlterInfo();