~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: Jay Pipes
  • Date: 2009-08-21 16:22:04 UTC
  • mto: This revision was merged to the branch mainline in revision 1145.
  • Revision ID: jpipes@serialcoder-20090821162204-jqfmc8n3wccu0f1c
Final removal of FIELDFLAG_BLOB.  This removes the incorrect and silly comparison of a packflag blob bit against the key_type's algorithm enum...

Show diffs side-by-side

added added

removed removed

Lines of Context:
3341
3341
         */
3342
3342
        if (! Field::type_can_have_key_part(cfield->field->type()) ||
3343
3343
            ! Field::type_can_have_key_part(cfield->sql_type) ||
3344
 
            (cfield->field->field_length == key_part_length && ! ((key_part->key_type & 1024) == 1024)) ||
 
3344
            (cfield->field->field_length == key_part_length) ||
3345
3345
            (cfield->length && (cfield->length < key_part_length / key_part->field->charset()->mbmaxlen)))
3346
3346
        {
3347
3347
          key_part_length= 0;                   // Use whole field