~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/create_field.cc

Merged Drizzle's Trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    ptrdiff_t diff;
104
104
 
105
105
    /* Get the value from default_values */
106
 
    diff= (ptrdiff_t) (orig_field->table->getShare()->default_values - orig_field->table->record[0]);
 
106
    diff= (ptrdiff_t) (orig_field->table->getDefaultValues() - orig_field->table->record[0]);
107
107
    orig_field->move_field_offset(diff);        // Points now at default_values
108
108
    if (! orig_field->is_real_null())
109
109
    {
164
164
  interval= 0;
165
165
  charset= &my_charset_bin;
166
166
  decimals= decimals_arg & FIELDFLAG_MAX_DEC;
167
 
  pack_flag= 0;
168
167
 
169
168
  if (! maybe_null)
170
169
    flags= NOT_NULL_FLAG;