~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/item.cc

  • Committer: Brian Aker
  • Date: 2008-07-06 04:37:08 UTC
  • Revision ID: brian@tangent.org-20080706043708-evdouixhx78h1tqo
Next bit of removal of mediumint

Show diffs side-by-side

added added

removed removed

Lines of Context:
4166
4166
    field= new Field_null((uchar*) 0, max_length, Field::NONE,
4167
4167
                          name, &my_charset_bin);
4168
4168
    break;
4169
 
  case MYSQL_TYPE_INT24:
4170
 
    field= new Field_medium((uchar*) 0, max_length, null_ptr, 0, Field::NONE,
4171
 
                            name, 0, unsigned_flag);
4172
 
    break;
4173
4169
  case MYSQL_TYPE_NEWDATE:
4174
4170
  case MYSQL_TYPE_DATE:
4175
4171
    field= new Field_newdate(maybe_null, name, &my_charset_bin);
4753
4749
      result= protocol->store_short(nr);
4754
4750
    break;
4755
4751
  }
4756
 
  case MYSQL_TYPE_INT24:
4757
4752
  case MYSQL_TYPE_LONG:
4758
4753
  {
4759
4754
    longlong nr;
6478
6473
    return 0;
6479
6474
  case MYSQL_TYPE_LONGLONG:
6480
6475
    return 20;
6481
 
  case MYSQL_TYPE_INT24:
6482
 
    return 8;
6483
6476
  default:
6484
6477
    DBUG_ASSERT(0); // we should never go there
6485
6478
    return 0;