~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_sum.h

  • Committer: Monty Taylor
  • Date: 2008-11-02 03:17:55 UTC
  • mto: (520.4.45 devel)
  • mto: This revision was merged to the branch mainline in revision 573.
  • Revision ID: monty@inaugust.com-20081102031755-cpzp7dlqoa7rcs1v
Removed a bunch of unusued tests and defines from autoconf.
Fixed the way we were doing cmath - and moved it out of global.h. Still probably
isn't right for Sun Studio, but we're getting closer I think.

Show diffs side-by-side

added added

removed removed

Lines of Context:
398
398
  Item_sum_num(Session *session, Item_sum_num *item) 
399
399
    :Item_sum(session, item),is_evaluated(item->is_evaluated) {}
400
400
  bool fix_fields(Session *, Item **);
401
 
  int64_t val_int()
402
 
  {
403
 
    assert(fixed == 1);
404
 
    return (int64_t) rint(val_real());             /* Real as default */
405
 
  }
 
401
  int64_t val_int();
406
402
  String *val_str(String*str);
407
403
  my_decimal *val_decimal(my_decimal *);
408
404
  void reset_field();
676
672
  bool add();
677
673
  double val_real();
678
674
  // In SPs we might force the "wrong" type with select into a declare variable
679
 
  int64_t val_int() { return (int64_t) rint(val_real()); }
 
675
  int64_t val_int();
680
676
  my_decimal *val_decimal(my_decimal *);
681
677
  String *val_str(String *str);
682
678
  void reset_field();
709
705
  Item_variance_field(Item_sum_variance *item);
710
706
  enum Type type() const {return FIELD_VARIANCE_ITEM; }
711
707
  double val_real();
712
 
  int64_t val_int()
713
 
  { /* can't be fix_fields()ed */ return (int64_t) rint(val_real()); }
 
708
  int64_t val_int();
714
709
  String *val_str(String *str)
715
710
  { return val_string_from_real(str); }
716
711
  my_decimal *val_decimal(my_decimal *dec_buf)
769
764
  void clear();
770
765
  bool add();
771
766
  double val_real();
 
767
  int64_t val_int();
772
768
  my_decimal *val_decimal(my_decimal *);
773
769
  void reset_field();
774
770
  void update_field();