~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/float.h

  • Committer: Mark Atwood
  • Date: 2011-07-07 02:23:07 UTC
  • mfrom: (2318.6.116 refactor18)
  • Revision ID: me@mark.atwood.name-20110707022307-4db00nqaaczzc3jv
mergeĀ lp:~olafvdspek/drizzle/refactor18

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
 
class Item_float :public Item_num
 
26
class Item_float : public Item_num
28
27
{
29
 
  char *presentation;
 
28
  const char *presentation;
30
29
public:
31
30
  double value;
32
 
  // Item_real() :value(0) {}
33
31
  Item_float(const char *str_arg, uint32_t length);
34
32
  Item_float(const char *str,double val_arg,uint32_t decimal_par,uint32_t length)
35
33
    :value(val_arg)
36
34
  {
37
 
    presentation= name=(char*) str;
 
35
    presentation= name= str;
38
36
    decimals=(uint8_t) decimal_par;
39
37
    max_length=length;
40
38
    fixed= 1;