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

« back to all changes in this revision

Viewing changes to drizzled/item/cache_int.h

  • 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:
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 */