Commit 54745a18 authored by unknown's avatar unknown

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
......@@ -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);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment