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:
@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user