1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed bug in UNION when doing UNION with the same tables

This commit is contained in:
monty@hundin.mysql.fi
2001-09-17 22:44:51 +03:00
parent fe1753de58
commit bfc7394ec3
8 changed files with 23 additions and 8 deletions

View File

@ -37,7 +37,7 @@ int mysql_union(THD *thd, LEX *lex,select_result *result)
int res;
DBUG_ENTER("mysql_union");
/* Fix tables--to-be-unioned-from list to point at opened tables */
/* Fix tables 'to-be-unioned-from' list to point at opened tables */
for (sl=&lex->select_lex; sl; sl=sl->next)
{
for (TABLE_LIST *cursor= (TABLE_LIST *)sl->table_list.first;