~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_int.h

  • Committer: Mark Atwood
  • Date: 2011-06-22 20:04:22 UTC
  • mfrom: (2318.6.39 rf)
  • Revision ID: me@mark.atwood.name-20110622200422-609npl456o0e5p32
mergeĀ lp:~olafvdspek/drizzle/refactor13

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include <drizzled/item/cache.h>
23
23
 
24
 
namespace drizzled
25
 
{
 
24
namespace drizzled {
26
25
 
27
 
class Item_cache_int: public Item_cache
 
26
class Item_cache_int : public Item_cache
28
27
{
29
 
protected:
30
 
  int64_t value;
31
28
public:
32
29
  Item_cache_int(): Item_cache(), value(0) {}
33
30
  Item_cache_int(enum_field_types field_type_arg):
41
38
  type::Decimal *val_decimal(type::Decimal *);
42
39
  enum Item_result result_type() const { return INT_RESULT; }
43
40
  bool result_as_int64_t() { return true; }
 
41
protected:
 
42
  int64_t value;
44
43
};
45
44
 
46
45
} /* namespace drizzled */