~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/num.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-10 16:48:48 UTC
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110810164848-3jlaz2c2xif0lxja
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
uint32_t Field_num::is_equal(CreateField *new_field_ptr)
225
225
{
226
226
  return ((new_field_ptr->sql_type == real_type()) &&
227
 
          ((new_field_ptr->flags & UNSIGNED_FLAG) ==
228
 
           (uint32_t) (flags & UNSIGNED_FLAG)) &&
229
 
          ((new_field_ptr->flags & AUTO_INCREMENT_FLAG) ==
230
 
           (uint32_t) (flags & AUTO_INCREMENT_FLAG)) &&
 
227
          ((new_field_ptr->flags & UNSIGNED_FLAG) == (uint32_t) (flags & UNSIGNED_FLAG)) &&
 
228
          ((new_field_ptr->flags & AUTO_INCREMENT_FLAG) == (uint32_t) (flags & AUTO_INCREMENT_FLAG)) &&
231
229
          (new_field_ptr->length <= max_display_length()));
232
230
}
233
231