1
0
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:
bell@sanja.is.com.ua
2004-11-30 21:41:12 +02:00
parent d5b21d03a5
commit f20e7a82b7
5 changed files with 14 additions and 2 deletions

View File

@@ -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()))