~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/alter_drop.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

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