mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-7245: Incorrect display of subquery cache in union.result
- Do set nest_level and nest_level_base for fake_select_lex objects.
This commit is contained in:
@ -7757,6 +7757,9 @@ bool st_select_lex_unit::add_fake_select_lex(THD *thd_arg)
|
||||
fake_select_lex->context.resolve_in_select_list= TRUE;
|
||||
fake_select_lex->context.select_lex= fake_select_lex;
|
||||
|
||||
fake_select_lex->nest_level_base= first_select()->nest_level_base;
|
||||
fake_select_lex->nest_level=first_select()->nest_level;
|
||||
|
||||
if (!is_union())
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user