~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/int.h

  • Committer: Jay Pipes
  • Date: 2009-03-13 23:35:46 UTC
  • mto: This revision was merged to the branch mainline in revision 937.
  • Revision ID: jpipes@serialcoder-20090313233546-n12t6xpf71um75fo
Split index hints out into their own file, removal from sql_lex.h and sql_select.cc

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; }
57
53
  uint32_t decimal_precision() const
58
54
  { return (uint32_t)(max_length - test(value < 0)); }
59
55
  bool eq(const Item *, bool binary_cmp) const;
 
56
  bool check_vcol_func_processor(unsigned char *)
 
57
  { return false; }
60
58
};
61
59
 
62
 
} /* namespace drizzled */
63
 
 
64
60
#endif /* DRIZZLED_ITEM_INT_H */