~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cached_item.cc

  • Committer: Brian Aker
  • Date: 2010-12-18 02:06:13 UTC
  • Revision ID: brian@tangent.org-20101218020613-8lxhcvsy812bu960
Formatting + remove default from switch/case.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    Field *cached_field= real_item->field;
49
49
    return new Cached_item_field(cached_field);
50
50
  }
 
51
 
51
52
  switch (item->result_type()) {
52
53
  case STRING_RESULT:
53
54
    return new Cached_item_str(session, (Item_field *) item);
58
59
  case DECIMAL_RESULT:
59
60
    return new Cached_item_decimal(item);
60
61
  case ROW_RESULT:
61
 
  default:
62
62
    assert(0);
63
63
    return 0;
64
64
  }
 
65
 
 
66
  abort();
65
67
}
66
68
 
67
69
Cached_item::~Cached_item() {}