~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/item/cache.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <drizzled/item/cache_str.h>
29
29
#include <drizzled/lex_string.h>
30
30
 
31
 
namespace drizzled
32
 
{
 
31
namespace drizzled {
33
32
 
34
33
Item_cache* Item_cache::get_cache(const Item *item)
35
34
{
36
 
  switch (item->result_type()) {
 
35
  switch (item->result_type()) 
 
36
  {
37
37
  case INT_RESULT:
38
38
    return new Item_cache_int();
39
39
 
50
50
    return new Item_cache_row();
51
51
  }
52
52
 
53
 
  assert(0);
 
53
  assert(false);
54
54
  abort();
55
55
}
56
56
 
67
67
 
68
68
bool Item_cache::eq_def(Field *field)
69
69
{
70
 
  return cached_field ? cached_field->eq_def (field) : false;
 
70
  return cached_field ? cached_field->eq_def(field) : false;
71
71
}
72
72
 
73
73
} /* namespace drizzled */