A quick fix for bug #7257: Crash in default tests: 'subselect'

sql/item.h:
  A quick fix for bug #7257: Crash in default tests: 'subselect'
  We have to pass &item instead of &store to the Item_ref_null_helper() 
  then set ref.
This commit is contained in:
unknown 2004-12-14 15:41:01 +04:00
commit 54745a18a1

View file

@ -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);
};