~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.h

  • Committer: Olaf van der Spek
  • Date: 2011-08-04 08:13:04 UTC
  • mfrom: (2384 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2385.
  • Revision ID: olafvdspek@gmail.com-20110804081304-rlejjpvoos17bjdf
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
677
677
 
678
678
class Item_func_if :public Item_func
679
679
{
680
 
  enum Item_result cached_result_type;
 
680
  Item_result cached_result_type;
681
681
  enum_field_types cached_field_type;
 
682
 
682
683
public:
683
 
  Item_func_if(Item *a,Item *b,Item *c)
684
 
    :Item_func(a,b,c), cached_result_type(INT_RESULT)
 
684
  Item_func_if(Item *a, Item *b, Item *c) :
 
685
    Item_func(a,b,c),
 
686
    cached_result_type(INT_RESULT)
685
687
  {}
 
688
 
686
689
  double val_real();
687
690
  int64_t val_int();
688
691
  String *val_str(String *str);
689
692
  type::Decimal *val_decimal(type::Decimal *);
690
 
  enum Item_result result_type () const { return cached_result_type; }
 
693
  Item_result result_type () const { return cached_result_type; }
691
694
  enum_field_types field_type() const { return cached_field_type; }
692
695
  bool fix_fields(Session *, Item **);
693
696
  void fix_length_and_dec();