~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/int.h

  • Committer: Brian Aker
  • Date: 2009-01-17 02:46:52 UTC
  • Revision ID: brian@gir-3.local-20090117024652-4ducefje08ajbs1q
Refactor append_identifier and remove dead OPTION_QUOTE_SHOW_CREATE option
(we always quote).

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <drizzled/item/num.h>
24
24
 
25
 
namespace drizzled
26
 
{
27
 
 
28
25
class Item_int :public Item_num
29
26
{
30
27
public:
37
34
    { max_length=length; fixed= 1; }
38
35
  Item_int(uint64_t i, uint32_t length= MY_INT64_NUM_DECIMAL_DIGITS)
39
36
    :value((int64_t)i)
40
 
  { max_length=length; fixed=1; }
 
37
    { max_length=length; fixed= 1; unsigned_flag= 1; }
41
38
  Item_int(const char *str_arg,int64_t i,uint32_t length) :value(i)
42
 
    { max_length= length; name= const_cast<char *>(str_arg); fixed= 1; }
 
39
    { max_length=length; name=(char*) str_arg; fixed= 1; }
43
40
  Item_int(const char *str_arg, uint32_t length=64);
44
41
  enum Type type() const { return INT_ITEM; }
45
42
  enum Item_result result_type () const { return INT_RESULT; }
54
51
  virtual void print(String *str, enum_query_type query_type);
55
52
  Item_num *neg() { value= -value; return this; }
56
53
  uint32_t decimal_precision() const
57
 
  { return (uint32_t)(max_length - test(value < 0)); }
 
54
  { return (uint)(max_length - test(value < 0)); }
58
55
  bool eq(const Item *, bool binary_cmp) const;
 
56
  bool check_vcol_func_processor(unsigned char *)
 
57
  { return false; }
59
58
};
60
59
 
61
 
} /* namespace drizzled */
62
 
 
63
60
#endif /* DRIZZLED_ITEM_INT_H */