mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +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:
@@ -1027,21 +1027,6 @@ public:
|
||||
|
||||
LEX_STRING name; /* name for named prepared statements */
|
||||
LEX *lex; // parse tree descriptor
|
||||
/*
|
||||
LEX which represents current statement (conventional, SP or PS)
|
||||
|
||||
For example during view parsing THD::lex will point to the views LEX and
|
||||
THD::stmt_lex will point to LEX of the statement where the view will be
|
||||
included
|
||||
|
||||
Currently it is used to have always correct select numbering inside
|
||||
statement (LEX::current_select_number) without storing and restoring a
|
||||
global counter which was THD::select_number.
|
||||
|
||||
TODO: make some unified statement representation (now SP has different)
|
||||
to store such data like LEX::current_select_number.
|
||||
*/
|
||||
LEX *stmt_lex;
|
||||
/*
|
||||
Points to the query associated with this statement. It's const, but
|
||||
we need to declare it char * because all table handlers are written
|
||||
|
||||
Reference in New Issue
Block a user