~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/table.cc

  • Committer: Brian Aker
  • Date: 2008-07-05 19:24:24 UTC
  • mfrom: (53.2.8 codestyle)
  • Revision ID: brian@tangent.org-20080705192424-3uslywtteymm7xqy
First pass of removing BIT_TYPE

Show diffs side-by-side

added added

removed removed

Lines of Context:
1154
1154
    reg_field->flags|= ((uint)column_format << COLUMN_FORMAT_FLAGS);
1155
1155
    reg_field->field_index= i;
1156
1156
    reg_field->comment=comment;
1157
 
    if (field_type == MYSQL_TYPE_BIT && !f_bit_as_char(pack_flag))
1158
 
    {
1159
 
      if ((null_bit_pos+= field_length & 7) > 7)
1160
 
      {
1161
 
        null_pos++;
1162
 
        null_bit_pos-= 8;
1163
 
      }
1164
 
    }
1165
1157
    if (!(reg_field->flags & NOT_NULL_FLAG))
1166
1158
    {
1167
1159
      if (!(null_bit_pos= (null_bit_pos + 1) & 7))
1258
1250
          if (!(field->flags & BINARY_FLAG))
1259
1251
            keyinfo->flags|= HA_END_SPACE_KEY;
1260
1252
        }
1261
 
        if (field->type() == MYSQL_TYPE_BIT)
1262
 
          key_part->key_part_flag|= HA_BIT_PART;
1263
 
 
1264
1253
        if (i == 0 && key != primary_key)
1265
1254
          field->flags |= (((keyinfo->flags & HA_NOSAME) &&
1266
1255
                           (keyinfo->key_parts == 1)) ?