~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/decimal.h

  • Committer: Mark Atwood
  • Date: 2011-07-13 22:28:29 UTC
  • mfrom: (2318.7.25 refactor1)
  • Revision ID: me@mark.atwood.name-20110713222829-sswp061b5ts7tc1k
mergeĀ lp:~olafvdspek/drizzle/refactor1

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include <drizzled/item/num.h>
23
23
 
24
 
namespace drizzled
25
 
{
 
24
namespace drizzled {
26
25
 
27
26
/* decimal (fixed point) constant */
28
 
class Item_decimal :public Item_num
 
27
class Item_decimal : public Item_num
29
28
{
30
29
protected:
31
30
  type::Decimal decimal_value;
32
31
public:
33
 
  Item_decimal(const char *str_arg, uint32_t length, const charset_info_st * const charset);
34
 
  Item_decimal(const char *str, const type::Decimal *val_arg,
35
 
               uint32_t decimal_par, uint32_t length);
 
32
  Item_decimal(const char *str_arg, uint32_t length, const charset_info_st*);
 
33
  Item_decimal(const char *str, const type::Decimal *val_arg, uint32_t decimal_par, uint32_t length);
36
34
  Item_decimal(type::Decimal *value_par);
37
35
  Item_decimal(int64_t val, bool unsig);
38
36
  Item_decimal(double val, int precision, int scale);
47
45
  type::Decimal *val_decimal(type::Decimal *)
48
46
  { return &decimal_value; }
49
47
  int save_in_field(Field *field, bool no_conversions);
50
 
  bool basic_const_item() const { return 1; }
 
48
  bool basic_const_item() const { return true; }
51
49
  Item *clone_item()
52
50
  {
53
51
    return new Item_decimal(name, &decimal_value, decimals, max_length);