~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.h

  • Committer: Brian Aker
  • Date: 2011-07-14 22:12:02 UTC
  • mto: (2392.1.1 drizzle-autoconf)
  • mto: This revision was merged to the branch mainline in revision 2368.
  • Revision ID: brian@tangent.org-20110714221202-9ov19jp0tmhiovqk
Fixes bug where true/false would not be interpreted correctly/displayed correctly.

Show diffs side-by-side

added added

removed removed

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