sql_view.cc:

  Additional patch for bug #28244 to workaround valgrind warnings.
parent 55833d3a
...@@ -706,7 +706,7 @@ static int mysql_register_view(THD *thd, TABLE_LIST *view, ...@@ -706,7 +706,7 @@ static int mysql_register_view(THD *thd, TABLE_LIST *view,
DBUG_PRINT("info", ("View: %s", str.ptr())); DBUG_PRINT("info", ("View: %s", str.ptr()));
/* fill structure */ /* fill structure */
view->query.str= str.c_ptr(); view->query.str= str.c_ptr_safe();
view->query.length= str.length(); view->query.length= str.length();
view->source.str= thd->query + thd->lex->create_view_select_start; view->source.str= thd->query + thd->lex->create_view_select_start;
view->source.length= skip_rear_comments((char *)view->source.str, view->source.length= skip_rear_comments((char *)view->source.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