~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/enum.cc

  • Committer: David Shrewsbury
  • Date: 2010-10-26 13:45:37 UTC
  • mto: (1882.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1883.
  • Revision ID: shrewsbury.dave@gmail.com-20101026134537-xncn5cm00jr01m2z
Fix Solaris gripe about unreachable statements

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
 
146
146
  ASSERT_COLUMN_MARKED_FOR_READ;
147
147
 
148
 
  if (not tmp || tmp > typelib->count)
 
148
  if (!tmp || tmp > typelib->count)
149
149
  {
150
150
    val_ptr->set("", 0, field_charset);
151
151
  }
208
208
  Field_enum *res= (Field_enum*) Field::new_field(root, new_table, keep_type);
209
209
  if (res)
210
210
  {
211
 
    res->typelib= typelib->copy_typelib(root);
 
211
    res->typelib= copy_typelib(root, typelib);
212
212
  }
213
213
  return res;
214
214
}