~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_int.h

  • Committer: Olaf van der Spek
  • Date: 2011-08-05 13:28:48 UTC
  • mto: This revision was merged to the branch mainline in revision 2395.
  • Revision ID: olafvdspek@gmail.com-20110805132848-vvwjg6pgwf56xnsd
Use const char* instead of str_ref

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_ITEM_CACHE_INT_H
21
 
#define DRIZZLED_ITEM_CACHE_INT_H
 
20
#pragma once
22
21
 
23
22
#include <drizzled/item/cache.h>
24
23
 
25
 
namespace drizzled
26
 
{
 
24
namespace drizzled {
27
25
 
28
 
class Item_cache_int: public Item_cache
 
26
class Item_cache_int : public Item_cache
29
27
{
30
 
protected:
31
 
  int64_t value;
32
28
public:
33
29
  Item_cache_int(): Item_cache(), value(0) {}
34
30
  Item_cache_int(enum_field_types field_type_arg):
42
38
  type::Decimal *val_decimal(type::Decimal *);
43
39
  enum Item_result result_type() const { return INT_RESULT; }
44
40
  bool result_as_int64_t() { return true; }
 
41
protected:
 
42
  int64_t value;
45
43
};
46
44
 
47
45
} /* namespace drizzled */
48
46
 
49
 
#endif /* DRIZZLED_ITEM_CACHE_INT_H */