~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/int.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-11-28 22:02:19 UTC
  • mfrom: (1228 push)
  • mto: (1228.4.1 push)
  • mto: This revision was merged to the branch mainline in revision 1234.
  • Revision ID: osullivan.padraig@gmail.com-20091128220219-m3x28m8q2unbirke
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define DRIZZLED_ITEM_INT_H
22
22
 
23
23
#include <drizzled/item/num.h>
24
 
#include <drizzled/util/test.h>
25
 
 
26
 
namespace drizzled
27
 
{
28
24
 
29
25
class Item_int :public Item_num
30
26
{
40
36
    :value((int64_t)i)
41
37
  { max_length=length; fixed=1; }
42
38
  Item_int(const char *str_arg,int64_t i,uint32_t length) :value(i)
43
 
    { max_length= length; name= const_cast<char *>(str_arg); fixed= 1; }
 
39
    { max_length=length; name=(char*) str_arg; fixed= 1; }
44
40
  Item_int(const char *str_arg, uint32_t length=64);
45
41
  enum Type type() const { return INT_ITEM; }
46
42
  enum Item_result result_type () const { return INT_RESULT; }
59
55
  bool eq(const Item *, bool binary_cmp) const;
60
56
};
61
57
 
62
 
} /* namespace drizzled */
63
 
 
64
58
#endif /* DRIZZLED_ITEM_INT_H */