mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 12:15:32 +02:00
Fixed bug in UNION when doing UNION with the same tables
myisam/mi_extra.c: More debugging information mysql-test/r/union.result: Added test for UNION bug mysql-test/t/union.test: Added test for UNION bug sql/sql_base.cc: Clear field->query_id when using UNION sql/sql_parse.cc: Fix for UNION bug sql/sql_union.cc: Cleanup sql/table.h: Fix for UNION bug tools/Makefile.am: Fix for compiling with MIT-threads
This commit is contained in:
parent
28097f40d3
commit
05821367d4
8 changed files with 23 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue