~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.cc

  • Committer: Nathan Williams
  • Date: 2009-06-05 22:51:06 UTC
  • mto: This revision was merged to the branch mainline in revision 1063.
  • Revision ID: nathanlws@gmail.com-20090605225106-8xrsftpf50tdpumn
No actual code changes. Changed Create_field to CreateField to be consistent with coding standards.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
*****************************************************************************/
51
51
 
52
52
#ifdef HAVE_EXPLICIT_TEMPLATE_INSTANTIATION
53
 
template class List<Create_field>;
54
 
template class List_iterator<Create_field>;
 
53
template class List<CreateField>;
 
54
template class List_iterator<CreateField>;
55
55
#endif
56
56
 
57
57
 
1223
1223
}
1224
1224
 
1225
1225
 
1226
 
uint32_t Field::is_equal(Create_field *new_field_ptr)
 
1226
uint32_t Field::is_equal(CreateField *new_field_ptr)
1227
1227
{
1228
1228
  return (new_field_ptr->sql_type == real_type());
1229
1229
}
1266
1266
}
1267
1267
 
1268
1268
/*****************************************************************************
1269
 
  Handling of field and Create_field
 
1269
  Handling of field and CreateField
1270
1270
*****************************************************************************/
1271
1271
 
1272
1272
/**
1273
1273
  Convert create_field::length from number of characters to number of bytes.
1274
1274
*/
1275
1275
 
1276
 
void Create_field::create_length_to_internal_length(void)
 
1276
void CreateField::create_length_to_internal_length(void)
1277
1277
{
1278
1278
  switch (sql_type) {
1279
1279
  case DRIZZLE_TYPE_BLOB:
1305
1305
/**
1306
1306
  Init for a tmp table field. To be extended if need be.
1307
1307
*/
1308
 
void Create_field::init_for_tmp_table(enum_field_types sql_type_arg,
 
1308
void CreateField::init_for_tmp_table(enum_field_types sql_type_arg,
1309
1309
                                      uint32_t length_arg, uint32_t decimals_arg,
1310
1310
                                      bool maybe_null, bool is_unsigned)
1311
1311
{
1344
1344
    true  on error
1345
1345
*/
1346
1346
 
1347
 
bool Create_field::init(Session *, char *fld_name, enum_field_types fld_type,
 
1347
bool CreateField::init(Session *, char *fld_name, enum_field_types fld_type,
1348
1348
                        char *fld_length, char *fld_decimals,
1349
1349
                        uint32_t fld_type_modifier, Item *fld_default_value,
1350
1350
                        Item *fld_on_update_value, LEX_STRING *fld_comment,
1726
1726
 
1727
1727
/** Create a field suitable for create of table. */
1728
1728
 
1729
 
Create_field::Create_field(Field *old_field,Field *orig_field)
 
1729
CreateField::CreateField(Field *old_field,Field *orig_field)
1730
1730
{
1731
1731
  field=      old_field;
1732
1732
  field_name=change=old_field->field_name;