Commit 54745a18 authored by unknown's avatar unknown
Browse files

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.
parent 8eea1710
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
};