diff --git a/sql/item.h b/sql/item.h index 71b92cd1efc605a946607093a2e1bfaf3c7c67b9..fb649547fa2639c503ec2d1068a7de7ffb6dd3e9 100644 --- a/sql/item.h +++ b/sql/item.h @@ -983,9 +983,9 @@ class Item_null_helper :public Item_ref_null_helper public: Item_null_helper(Item_in_subselect* master, Item *item, const char *table_name_par, const char *field_name_par) - :Item_ref_null_helper(master, &store, table_name_par, field_name_par), + :Item_ref_null_helper(master, &item, table_name_par, field_name_par), store(item) - {} + { ref= &store; } void print(String *str); };