1
0
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:
Oleksandr Byelkin
2018-05-07 17:42:55 +02:00
parent 3b99a274a8
commit 0bd2b80254
11 changed files with 60 additions and 34 deletions

View File

@ -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;
}