~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache.cc

  • Committer: Brian Aker
  • Date: 2010-10-19 08:17:10 UTC
  • mto: (1864.2.1 merge)
  • mto: This revision was merged to the branch mainline in revision 1864.
  • Revision ID: brian@tangent.org-20101019081710-hw13j03145h13pdg
Merge in a bit more strictness around table type.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  switch (item->result_type()) {
35
35
  case INT_RESULT:
36
36
    return new Item_cache_int();
37
 
 
38
37
  case REAL_RESULT:
39
38
    return new Item_cache_real();
40
 
 
41
39
  case DECIMAL_RESULT:
42
40
    return new Item_cache_decimal();
43
 
 
44
41
  case STRING_RESULT:
45
42
    return new Item_cache_str(item);
46
 
 
47
43
  case ROW_RESULT:
48
44
    return new Item_cache_row();
 
45
  default:
 
46
    // should never be in real life
 
47
    assert(0);
 
48
    return 0;
49
49
  }
50
 
 
51
 
  assert(0);
52
 
  abort();
53
50
}
54
51
 
55
52