~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/ident.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 10:42:50 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110705104250-1xpra27hh5nhpv4p
Refactor Items

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
   alias_name_used(false), cached_field_index(NO_CACHED_FIELD_INDEX),
41
41
   cached_table(0), depended_from(0)
42
42
{
43
 
  name = (char*) field_name_arg;
 
43
  name = field_name_arg;
44
44
}
45
45
 
46
46
/**
69
69
  table_name= orig_table_name;
70
70
  field_name= orig_field_name;
71
71
  depended_from= 0;
72
 
  return;
73
72
}
74
73
 
75
74
bool Item_ident::remove_dependence_processor(unsigned char * arg)
182
181
  tmp_field->charsetnr= field->charset()->number;
183
182
  tmp_field->length=field->field_length;
184
183
  tmp_field->type=field->type();
185
 
  tmp_field->flags= field->getTable()->maybe_null ?
186
 
    (field->flags & ~NOT_NULL_FLAG) : field->flags;
 
184
  tmp_field->flags= field->getTable()->maybe_null ? (field->flags & ~NOT_NULL_FLAG) : field->flags;
187
185
  tmp_field->decimals= field->decimals();
188
186
}
189
187