1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

fix for a bug with UNION in sub-select's and start working on

UNION's in derived tables
This commit is contained in:
Sinisa@sinisa.nasamreza.org
2002-12-09 20:47:47 +02:00
parent 444690caa4
commit d8b4d6bd26
4 changed files with 7 additions and 1 deletions

View File

@ -125,6 +125,8 @@ int st_select_lex_unit::prepare(THD *thd, select_result *result)
SELECT_LEX_NODE *lex_select_save= thd->lex.current_select;
SELECT_LEX *sl;
if (lex_select_save->linkage != DERIVED_TABLE_TYPE)
thd->lex.current_select=first_select();
/* Global option */
if (((void*)(global_parameters)) == ((void*)this))
{