mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
now we create temporary join for all queries with subqueries to make correct cleunup of tables and avoid too early unlock (BUG#6841)
This commit is contained in:
@@ -3955,6 +3955,7 @@ mysql_new_select(LEX *lex, bool move_down)
|
||||
select_lex->init_select();
|
||||
if (move_down)
|
||||
{
|
||||
lex->subqueries= TRUE;
|
||||
/* first select_lex of subselect or derived table */
|
||||
SELECT_LEX_UNIT *unit;
|
||||
if (!(unit= new(lex->thd->mem_root) SELECT_LEX_UNIT()))
|
||||
|
Reference in New Issue
Block a user