~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/create_field.h

Merge Monty - Added inter-plugin dependencies for controlling plugin load order

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
 
#pragma once
21
 
 
22
 
#include <drizzled/field.h>
23
 
 
24
 
namespace drizzled {
 
20
#ifndef DRIZZLED_CREATE_FIELD_H
 
21
#define DRIZZLED_CREATE_FIELD_H
 
22
 
 
23
#include "drizzled/field.h"
 
24
 
 
25
namespace drizzled
 
26
{
 
27
 
 
28
class Item;
 
29
typedef struct st_typelib TYPELIB;
25
30
 
26
31
/**
27
32
 * Class representing a field in a CREATE TABLE statement.
61
66
  Field::utype unireg_check; /**< See Field::unireg_check */
62
67
  TYPELIB *interval; /**< Which interval to use (ENUM types..) */
63
68
  List<String> interval_list;
64
 
  const charset_info_st *charset; /**< Character set for the column -- @TODO should be deleted */
 
69
  const CHARSET_INFO *charset; /**< Character set for the column -- @TODO should be deleted */
65
70
  Field *field; // For alter table
66
71
 
67
72
  uint8_t interval_id;  // For rea_create_table
117
122
            char *length,
118
123
            char *decimals,
119
124
            uint32_t type_modifier,
 
125
            Item *default_value,
 
126
            Item *on_update_value,
120
127
            LEX_STRING *comment,
121
128
            char *change,
122
129
            List<String> *interval_list,
123
 
            const charset_info_st * const cs,
 
130
            const CHARSET_INFO * const cs,
124
131
            uint32_t uint_geom_type,
125
132
            enum column_format_type column_format);
126
 
 
127
 
  bool setDefaultValue(Item *default_value, Item *on_update_item);
128
133
};
129
134
 
130
135
std::ostream& operator<<(std::ostream& output, const CreateField &field);
131
136
 
132
137
} /* namespace drizzled */
133
138
 
 
139
#endif /* DRIZZLED_CREATE_FIELD_H */