mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
simple subselects ported to new select_lex structures
This commit is contained in:
@@ -40,17 +40,6 @@ int mysql_union(THD *thd, LEX *lex,select_result *result)
|
||||
DBUG_ENTER("mysql_union");
|
||||
st_select_lex_node * global;
|
||||
|
||||
/* Fix tables 'to-be-unioned-from' list to point at opened tables */
|
||||
for (sl= &lex->select_lex;
|
||||
sl;
|
||||
sl= (SELECT_LEX *) sl->next)
|
||||
{
|
||||
for (TABLE_LIST *cursor= (TABLE_LIST *)sl->table_list.first;
|
||||
cursor;
|
||||
cursor=cursor->next)
|
||||
cursor->table= cursor->table_list->table;
|
||||
}
|
||||
|
||||
/* Global option */
|
||||
if (((void*)(global= unit->global_parameters)) == ((void*)unit))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user