mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-15347: Valgrind or ASAN errors in mysql_make_view on query from information_schema
Make each lex pointing to statement lex instead of global pointer in THD (no need store and restore the global pointer and put it on SP stack).
This commit is contained in:
@ -3654,7 +3654,7 @@ void Statement::set_statement(Statement *stmt)
|
||||
{
|
||||
id= stmt->id;
|
||||
mark_used_columns= stmt->mark_used_columns;
|
||||
stmt_lex= lex= stmt->lex;
|
||||
lex= stmt->lex;
|
||||
query_string= stmt->query_string;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user