1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Bug#35428 When selecting from INFORMATION_SCHEMA tables, incomplete metadata

backport to Betony
This commit is contained in:
Sergey Glukhov
2009-10-23 14:19:54 +05:00
parent 0a0f50e4ab
commit 676c12e2d4
9 changed files with 221 additions and 195 deletions

View File

@ -9947,6 +9947,8 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
share->primary_key= MAX_KEY; // Indicate no primary key
share->keys_for_keyread.init();
share->keys_in_use.init();
if (param->schema_table)
share->db= INFORMATION_SCHEMA_NAME;
/* Calculate which type of fields we will store in the temporary table */