~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/sum.h

  • Committer: Monty Taylor
  • Date: 2009-12-23 08:55:31 UTC
  • mto: This revision was merged to the branch mainline in revision 1253.
  • Revision ID: mordred@inaugust.com-20091223085531-6b7mgq2wbbcqdng4
Removed the first mystrings header.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <drizzled/item.h>
28
28
#include <drizzled/item/field.h>
29
29
#include <drizzled/item/bin_string.h>
30
 
#include <mystrings/m_string.h>
31
30
 
32
31
typedef struct st_tree TREE;
33
32
 
1033
1032
  bool fix_fields(Session *,Item **);
1034
1033
  bool setup(Session *session);
1035
1034
  void make_unique();
1036
 
  double val_real()
1037
 
  {
1038
 
    String *res;  res=val_str(&str_value);
1039
 
    return res ? my_atof(res->c_ptr()) : 0.0;
1040
 
  }
1041
 
  int64_t val_int()
1042
 
  {
1043
 
    String *res;
1044
 
    char *end_ptr;
1045
 
    int error;
1046
 
    if (!(res= val_str(&str_value)))
1047
 
      return (int64_t) 0;
1048
 
    end_ptr= (char*) res->ptr()+ res->length();
1049
 
    return my_strtoll10(res->ptr(), &end_ptr, &error);
1050
 
  }
 
1035
  double val_real();
 
1036
  int64_t val_int();
1051
1037
  my_decimal *val_decimal(my_decimal *decimal_value)
1052
1038
  {
1053
1039
    return val_decimal_from_string(decimal_value);