~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/protocol.cc

  • Committer: Brian Aker
  • Date: 2008-07-09 19:50:17 UTC
  • Revision ID: brian@tangent.org-20080709195017-2mhypy60ts2tg0r5
Removed TINY BLOB.

Show diffs side-by-side

added added

removed removed

Lines of Context:
592
592
          definition of the column. In other words, the maximum number
593
593
          of characters here is limited by the column definition.
594
594
        */
595
 
        max_char_len= (field.type >= (int) MYSQL_TYPE_TINY_BLOB &&
596
 
                      field.type <= (int) MYSQL_TYPE_BLOB) ?
597
 
                      field.length / item->collation.collation->mbminlen :
598
 
                      field.length / item->collation.collation->mbmaxlen;
 
595
        max_char_len= field.length / item->collation.collation->mbmaxlen;
599
596
        int4store(pos+2, max_char_len * thd_charset->mbmaxlen);
600
597
      }
601
598
      pos[6]= field.type;