~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/alter_drop.h

  • Committer: Brian Aker
  • Date: 2009-09-16 21:55:09 UTC
  • mfrom: (1126.3.5 alter_table)
  • mto: This revision was merged to the branch mainline in revision 1128.
  • Revision ID: brian@gaz-20090916215509-cuq5yuvlnx2b45b3
Merge Jay.

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
 
26
25
class Item;
27
26
typedef struct st_mem_root MEM_ROOT;
28
27
 
29
 
class Alter_drop :public Sql_alloc {
 
28
class AlterDrop :public Sql_alloc {
30
29
public:
31
 
  enum drop_type {KEY, COLUMN };
 
30
  enum drop_type
 
31
  {
 
32
    KEY,
 
33
    COLUMN
 
34
  };
32
35
  const char *name;
33
36
  enum drop_type type;
34
 
  Alter_drop(enum drop_type par_type,const char *par_name)
35
 
    :name(par_name), type(par_type) {}
 
37
  AlterDrop(enum drop_type par_type,
 
38
            const char *par_name) :
 
39
    name(par_name),
 
40
    type(par_type)
 
41
  {}
36
42
  /**
37
43
    Used to make a clone of this object for ALTER/CREATE TABLE
38
44
    @sa comment for Key_part_spec::clone
39
45
  */
40
 
  Alter_drop *clone(MEM_ROOT *mem_root) const
41
 
    { return new (mem_root) Alter_drop(*this); }
 
46
  AlterDrop *clone(MEM_ROOT *mem_root) const
 
47
  {
 
48
    return new (mem_root) AlterDrop(*this);
 
49
  }
42
50
};
43
51
 
44
 
 
45
52
#endif /* DRIZZLED_ALTER_DROP_H */