* gluh@stripped <gluh@stripped> [08/03/27 17:01]:
> ChangeSet@stripped, 2008-03-27 18:48:03+04:00, gluh@stripped +8 -0
> Bug#35428 When selecting from INFORMATION_SCHEMA tables, incomplete metadata
> added intialization of db name for I_S table fields
> added intialization of orig table name for I_S table fields
OK to push.
> --- a/sql/sql_select.cc 2008-03-03 21:35:38 +04:00
> +++ b/sql/sql_select.cc 2008-03-27 18:48:01 +04:00
> @@ -9398,7 +9398,11 @@ create_tmp_table(THD *thd,TMP_TABLE_PARA
> table->s->keys_for_keyread.init();
> table->s->keys_in_use.init();
> /* For easier error reporting */
> - table->s->table_cache_key= (char*) (table->s->db= "");
> + if (param->schema_table)
> + table->s->table_cache_key=
> + (char*) (table->s->db= INFORMATION_SCHEMA_NAME.str);
> + else
> + table->s->table_cache_key= (char*) (table->s->db= "");
>
> /* Calculate which type of fields we will store in the temporary table */
--
Konstantin