~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/alter_drop.h

  • Committer: Brian Aker
  • Date: 2010-12-08 22:35:56 UTC
  • mfrom: (1819.9.158 update-innobase)
  • Revision ID: brian@tangent.org-20101208223556-37mi4omqg7lkjzf3
Merge in Stewart's changes, 1.3 changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
 
21
20
#ifndef DRIZZLED_ALTER_DROP_H
22
21
#define DRIZZLED_ALTER_DROP_H
23
22
 
24
 
#include <drizzled/sql_alloc.h>
 
23
#include "drizzled/memory/sql_alloc.h"
 
24
 
 
25
namespace drizzled
 
26
{
 
27
 
 
28
namespace memory { class Root; }
25
29
 
26
30
class Item;
27
 
typedef struct st_mem_root MEM_ROOT;
28
31
 
29
 
class Alter_drop :public Sql_alloc {
 
32
class AlterDrop :public memory::SqlAlloc {
30
33
public:
31
 
  enum drop_type {KEY, COLUMN };
 
34
  enum drop_type
 
35
  {
 
36
    KEY,
 
37
    COLUMN,
 
38
    FOREIGN_KEY
 
39
  };
32
40
  const char *name;
33
41
  enum drop_type type;
34
 
  Alter_drop(enum drop_type par_type,const char *par_name)
35
 
    :name(par_name), type(par_type) {}
 
42
  AlterDrop(enum drop_type par_type,
 
43
            const char *par_name) :
 
44
    name(par_name),
 
45
    type(par_type)
 
46
  {}
36
47
  /**
37
48
    Used to make a clone of this object for ALTER/CREATE TABLE
38
49
    @sa comment for Key_part_spec::clone
39
50
  */
40
 
  Alter_drop *clone(MEM_ROOT *mem_root) const
41
 
    { return new (mem_root) Alter_drop(*this); }
 
51
  AlterDrop *clone(memory::Root *mem_root) const
 
52
  {
 
53
    return new (mem_root) AlterDrop(*this);
 
54
  }
42
55
};
43
56
 
 
57
} /* namespace drizzled */
44
58
 
45
59
#endif /* DRIZZLED_ALTER_DROP_H */