~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_table.cc

  • Committer: Brian Aker
  • Date: 2008-07-23 00:11:39 UTC
  • Revision ID: brian@tangent.org-20080723001139-967ewfngqqotwb6e
Removed final uint dead types.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1352
1352
    if (key->generated)
1353
1353
      key_info->flags|= HA_GENERATED_KEY;
1354
1354
 
1355
 
    key_info->key_parts=(uint8) key->columns.elements;
 
1355
    key_info->key_parts=(uint8_t) key->columns.elements;
1356
1356
    key_info->key_part=key_part_info;
1357
1357
    key_info->usable_key_parts= key_number;
1358
1358
    key_info->algorithm= key->key_create_info.algorithm;
1463
1463
      }
1464
1464
 
1465
1465
      key_part_info->fieldnr= field;
1466
 
      key_part_info->offset=  (uint16) sql_field->offset;
 
1466
      key_part_info->offset=  (uint16_t) sql_field->offset;
1467
1467
      key_part_info->key_type=sql_field->pack_flag;
1468
1468
      length= sql_field->key_length;
1469
1469
 
1531
1531
          return(true);
1532
1532
        }
1533
1533
      }
1534
 
      key_part_info->length=(uint16) length;
 
1534
      key_part_info->length=(uint16_t) length;
1535
1535
      /* Use packed keys for long strings on the first column */
1536
1536
      if (!((*db_options) & HA_OPTION_NO_PACK_KEYS) &&
1537
1537
          (length >= KEY_DEFAULT_PACK_LENGTH &&
1584
1584
    }
1585
1585
    if (!(key_info->flags & HA_NULL_PART_KEY))
1586
1586
      unique_key=1;
1587
 
    key_info->key_length=(uint16) key_length;
 
1587
    key_info->key_length=(uint16_t) key_length;
1588
1588
    if (key_length > max_key_length)
1589
1589
    {
1590
1590
      my_error(ER_TOO_LONG_KEY,MYF(0),max_key_length);