mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Fixed bug in UNION when doing UNION with the same tables
This commit is contained in:
@@ -2921,8 +2921,10 @@ static bool create_total_list(THD *thd, LEX *lex, TABLE_LIST **result)
|
||||
}
|
||||
*new_table_list= cursor;
|
||||
new_table_list= &cursor->next;
|
||||
*new_table_list=0; // end result list
|
||||
*new_table_list=0; // end result list
|
||||
}
|
||||
else
|
||||
aux->shared=1; // Mark that it's used twice
|
||||
aux->table=(TABLE *) cursor;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user