diff --git a/sql/item.cc b/sql/item.cc index 7b0dcc664c7..b7523478be3 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -1999,7 +1999,7 @@ bool Item_ref::fix_fields(THD *thd,TABLE_LIST *tables, Item **reference) } else if (tmp != not_found_field) { - ref= 0; // To prevent "delete *ref;" on ~Item_erf() of this item + ref= 0; // To prevent "delete *ref;" on ~Item_ref() of this item Item_field* fld; if (!((*reference)= fld= new Item_field(tmp))) return 1; diff --git a/sql/sql_class.h b/sql/sql_class.h index 68d187168d3..fbbb7fc7383 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -1264,8 +1264,6 @@ public: bool send_fields(List &list, uint flag) { return 0; }; bool send_data(List &items)=0; bool send_eof() { return 0; }; - - friend class Ttem_subselect; }; /* Single value subselect interface class */