diff options
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index 41171da1338..e3d8eb7746d 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -91,14 +91,15 @@ class Item_in_optimizer: public Item_bool_func protected: Item_cache *cache; public: - Item_in_optimizer(Item *a,Item *b): - Item_bool_func(a,b), cache(0) {} + Item_in_optimizer(Item *a, Item_in_subselect *b): + Item_bool_func(a, (Item *)b), cache(0) {} + // used by row in transformer + bool preallocate_row(); bool fix_fields(THD *, struct st_table_list *, Item **); bool is_null(); longlong val_int(); - Item **get_cache() { return (Item**)&cache; } - + Item_cache **get_cache() { return &cache; } }; class Item_bool_func2 :public Item_int_func |