~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/field.cc

  • Committer: Brian Aker
  • Date: 2008-07-09 18:31:18 UTC
  • Revision ID: brian@tangent.org-20080709183118-x2el29zgdeg0yexw
More cleanup around Drizzle types.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7928
7928
enum_field_types get_blob_type_from_length(ulong length)
7929
7929
{
7930
7930
  enum_field_types type;
7931
 
  if (length < 256)
7932
 
    type= MYSQL_TYPE_TINY_BLOB;
7933
 
  else if (length < 65536)
7934
 
    type= MYSQL_TYPE_BLOB;
7935
 
  else if (length < 256L*256L*256L)
7936
 
    type= MYSQL_TYPE_MEDIUM_BLOB;
7937
 
  else
7938
 
    type= MYSQL_TYPE_LONG_BLOB;
 
7931
 
 
7932
  type= MYSQL_TYPE_BLOB;
 
7933
 
7939
7934
  return type;
7940
7935
}
7941
7936