~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/alter_column.h

  • Committer: Mark Atwood
  • Date: 2011-08-11 03:05:03 UTC
  • mfrom: (2385.1.12 refactor4)
  • Revision ID: me@mark.atwood.name-20110811030503-rp9xjihc5x3y0x4q
mergeĀ lp:~olafvdspek/drizzle/refactor4

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