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

correct table name assigned to temporary table field:

- correct table name shown in EXPLAIN Iindex reference)
 - pointer on freed memmory (reallocation of table name in reusing table entry) can't be used in EXPLAIN
(BUG#1584)
This commit is contained in:
bell@sanja.is.com.ua
2003-10-19 14:25:33 +03:00
parent 2586a56be5
commit 9d294b869e
6 changed files with 35 additions and 21 deletions

View File

@ -4866,6 +4866,9 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
recinfo->type=FIELD_NORMAL;
if (!--hidden_field_count)
null_count=(null_count+7) & ~7; // move to next byte
// fix table name in field entry
field->table_name= table->table_name;
}
param->copy_field_end=copy;