1
0
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:
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

@@ -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;
}
}