mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Moving LP BUG#794005 to 5.3 + fixing INSERT of multi-table view.
This commit is contained in:
@ -7927,7 +7927,8 @@ bool setup_tables(THD *thd, Name_resolution_context *context,
|
||||
while ((table_list= ti++))
|
||||
{
|
||||
TABLE *table= table_list->table;
|
||||
table->pos_in_table_list= table_list;
|
||||
if (table)
|
||||
table->pos_in_table_list= table_list;
|
||||
if (first_select_table &&
|
||||
table_list->top_table() == first_select_table)
|
||||
{
|
||||
@ -7940,7 +7941,7 @@ bool setup_tables(THD *thd, Name_resolution_context *context,
|
||||
{
|
||||
table_list->jtbm_table_no= tablenr;
|
||||
}
|
||||
else
|
||||
else if (table)
|
||||
{
|
||||
table->pos_in_table_list= table_list;
|
||||
setup_table_map(table, table_list, tablenr);
|
||||
|
Reference in New Issue
Block a user