~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/create_field.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:
20
20
#ifndef DRIZZLED_CREATE_FIELD_H
21
21
#define DRIZZLED_CREATE_FIELD_H
22
22
 
23
 
#include "drizzled/field.h"
24
 
 
25
 
namespace drizzled
26
 
{
27
 
 
28
23
class Item;
29
 
typedef struct st_typelib TYPELIB;
30
24
 
31
25
/**
32
26
 * Class representing a field in a CREATE TABLE statement.
34
28
 * Basically, all information for a new or altered field
35
29
 * definition is contained in the Create_field class.
36
30
 */
37
 
class CreateField :public memory::SqlAlloc
 
31
class CreateField :public Sql_alloc
38
32
{
39
33
public:
40
34
  const char *field_name; /**< Name of the field to be created */
70
64
  CreateField() :after(0) {}
71
65
  CreateField(Field *field, Field *orig_field);
72
66
  /* Used to make a clone of this object for ALTER/CREATE TABLE */
73
 
  CreateField *clone(memory::Root *mem_root) const
 
67
  CreateField *clone(MEM_ROOT *mem_root) const
74
68
    { return new (mem_root) CreateField(*this); }
75
69
  void create_length_to_internal_length(void);
76
70
 
88
82
  void init_for_tmp_table(enum_field_types sql_type_arg,
89
83
                          uint32_t max_length,
90
84
                          uint32_t decimals,
91
 
                          bool maybe_null);
 
85
                          bool maybe_null,
 
86
                          bool is_unsigned);
92
87
 
93
88
  /**
94
89
    Initialize field definition for create.
127
122
            enum column_format_type column_format);
128
123
};
129
124
 
130
 
} /* namespace drizzled */
131
 
 
132
125
#endif /* DRIZZLED_CREATE_FIELD_H */