summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authorgkodinov/kgeorge@magare.gmz <>2007-09-26 19:06:54 +0300
committergkodinov/kgeorge@magare.gmz <>2007-09-26 19:06:54 +0300
commitd0b796bf14ab6535f7aac54eb33cabf5d38452af (patch)
tree72aa6cfe7d2fc332845cce73577dd273ccaa5f64 /sql/item_cmpfunc.h
parent133175fb9f9f6a5373ec92bb38294871a300974b (diff)
downloadmariadb-git-d0b796bf14ab6535f7aac54eb33cabf5d38452af.tar.gz
merge of the fix for bug 27802 & 27216 to 5.1-opt
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r--sql/item_cmpfunc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h
index 1a64f9c4211..e9aeef7fc3e 100644
--- a/sql/item_cmpfunc.h
+++ b/sql/item_cmpfunc.h
@@ -1108,6 +1108,7 @@ class Item_func_case :public Item_func
uint ncases;
Item_result cmp_type;
DTCollation cmp_collation;
+ enum_field_types cached_field_type;
cmp_item *cmp_items[5]; /* For all result types */
cmp_item *case_item;
public:
@@ -1138,6 +1139,7 @@ public:
uint decimal_precision() const;
table_map not_null_tables() const { return 0; }
enum Item_result result_type () const { return cached_result_type; }
+ enum_field_types field_type() const { return cached_field_type; }
const char *func_name() const { return "case"; }
void print(String *str);
Item *find_item(String *str);