1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix to get correct metadata when using temporary tables to create result. (Bug #2654)

This commit is contained in:
monty@mysql.com
2004-03-30 19:24:28 +03:00
parent 4bc6b551f8
commit f602829c75
8 changed files with 166 additions and 17 deletions

View File

@ -904,6 +904,7 @@ TABLE *delayed_insert::get_local_table(THD* client_thd)
{
if (!(*field= (*org_field)->new_field(&client_thd->mem_root,copy)))
return 0;
(*field)->orig_table= copy; // Remove connection
(*field)->move_field(adjust_ptrs); // Point at copy->record[0]
if (*org_field == found_next_number_field)
(*field)->table->found_next_number_field= *field;