Commit ea7921f6 authored by unknown's avatar unknown
Browse files

Small adjustment after merging fix for bug#23651 "Server crashes when

trigger which uses stored function invoked from different connections"
into 5.1.


sql/item_func.cc:
  After merge fix. Starting from 5.1 TABLE_SHARE for dummy TABLE object
  is also allocated in Item_func_sp constructor, so we use TABLE::alias
  instead of TABLE::s to check that dummy TABLE was not initialized yet
  or requires re-initialization.
parent 458fb082
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4852,7 +4852,7 @@ Item_func_sp::cleanup()
    result_field= NULL;
  }
  m_sp= NULL;
  dummy_table->s= NULL;
  dummy_table->alias= NULL;
  Item_func::cleanup();
}