diff options
author | vva@eagle.mysql.r18.ru <> | 2003-08-27 19:11:54 -0400 |
---|---|---|
committer | vva@eagle.mysql.r18.ru <> | 2003-08-27 19:11:54 -0400 |
commit | cde2b505145a9c694a4fe0407bdf6266304b9490 (patch) | |
tree | e6c2943f6ddf76f861bea6ce8b9febe07a60bc95 /sql/item_cmpfunc.h | |
parent | 1d2a7cadaeb687db69f5e19b83c0b9cacb9f7664 (diff) | |
download | mariadb-git-cde2b505145a9c694a4fe0407bdf6266304b9490.tar.gz |
fixed bug #910 (right type of ifnull function)
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index 25cc97d60bf..5dd919c984b 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -281,6 +281,8 @@ public: class Item_func_ifnull :public Item_func { enum Item_result cached_result_type; + enum_field_types cached_field_type; + bool field_type_defined; public: Item_func_ifnull(Item *a,Item *b) :Item_func(a,b), cached_result_type(INT_RESULT) @@ -289,8 +291,10 @@ public: longlong val_int(); String *val_str(String *str); enum Item_result result_type () const { return cached_result_type; } + enum_field_types field_type() const; void fix_length_and_dec(); const char *func_name() const { return "ifnull"; } + Field *tmp_table_field(TABLE *table); }; |