mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
sql_view.cc:
Additional patch for bug #28244 to workaround valgrind warnings. sql/sql_view.cc: Additional patch for bug #28244 to workaround valgrind warnings.
This commit is contained in:
parent
b33ae435b1
commit
8fe16346eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue