3342
3342
if (! Field::type_can_have_key_part(cfield->field->type()) ||
3343
3343
! Field::type_can_have_key_part(cfield->sql_type) ||
3345
3345
(cfield->length && (cfield->length < key_part_length / key_part->field->charset()->mbmaxlen)))
3347
3347
key_part_length= 0; // Use whole field