Commit d6a0bbf2 authored by gshchepa/uchum@gleb.loc's avatar gshchepa/uchum@gleb.loc
Browse files

sql_view.cc:

  Additional patch for bug #28244 to workaround valgrind warnings.
parent 55833d3a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -706,7 +706,7 @@ static int mysql_register_view(THD *thd, TABLE_LIST *view,
  DBUG_PRINT("info", ("View: %s", str.ptr()));

  /* fill structure */
  view->query.str= str.c_ptr();
  view->query.str= str.c_ptr_safe();
  view->query.length= str.length();
  view->source.str= thd->query + thd->lex->create_view_select_start;
  view->source.length= skip_rear_comments((char *)view->source.str,