~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/create_field.h

  • Committer: pcrews
  • Date: 2011-05-24 17:36:24 UTC
  • mfrom: (1099.4.232 drizzle)
  • Revision ID: pcrews@lucid32-20110524173624-mwr1bvq6fa1r01ao
Updated translations + 2011.05.18 tarball tag

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