~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/alter_column.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include <drizzled/memory/sql_alloc.h>
23
23
 
24
 
namespace drizzled
 
24
namespace drizzled {
 
25
 
 
26
class AlterColumn : public memory::SqlAlloc 
25
27
{
26
 
 
27
 
namespace memory { class Root; }
28
 
 
29
 
class Item;
30
 
 
31
 
class AlterColumn :public memory::SqlAlloc {
32
28
public:
33
29
  const char *name;
34
30
  Item *def;
36
32
    name(par_name),
37
33
    def(literal)
38
34
  {}
39
 
  
40
 
  /**
41
 
    Used to make a clone of this object for ALTER/CREATE TABLE
42
 
    @sa comment for Key_part_spec::clone
43
 
  */
44
 
  AlterColumn *clone(memory::Root *mem_root) const
45
 
  {
46
 
    return new (mem_root) AlterColumn(*this);
47
 
  }
48
35
};
49
36
 
50
37
} /* namespace drizzled */