~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/alter_column.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_COLUMN_H
21
22
#define DRIZZLED_ALTER_COLUMN_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 AlterColumn :public memory::SqlAlloc {
 
29
class Alter_column :public Sql_alloc {
33
30
public:
34
31
  const char *name;
35
32
  Item *def;
36
 
  AlterColumn(const char *par_name,Item *literal) :
37
 
    name(par_name),
38
 
    def(literal)
39
 
  {}
40
 
  
 
33
  Alter_column(const char *par_name,Item *literal)
 
34
    :name(par_name), def(literal) {}
41
35
  /**
42
36
    Used to make a clone of this object for ALTER/CREATE TABLE
43
37
    @sa comment for Key_part_spec::clone
44
38
  */
45
 
  AlterColumn *clone(memory::Root *mem_root) const
46
 
  {
47
 
    return new (mem_root) AlterColumn(*this);
48
 
  }
 
39
  Alter_column *clone(MEM_ROOT *mem_root) const
 
40
    { return new (mem_root) Alter_column(*this); }
49
41
};
50
42
 
51
 
} /* namespace drizzled */
52
 
 
53
43
#endif /* DRIZZLED_ALTER_COLUMN_H */