mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +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)
mysql-test/t/subselect_innodb.test: possible early unlock sql/sql_lex.cc: subqueries presence flag sql/sql_lex.h: subqueries presence flag sql/sql_parse.cc: subqueries presence flag sql/sql_select.cc: removed some too optimistic optimisation, now we create temporary join for all queries with subqueries to make correct cleunup of tables and avoid too early unlock
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