diff --git a/sql/sql_select.cc b/sql/sql_select.cc index a44628d66a9..b9c8f6c1237 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -7904,7 +7904,7 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List &fields, 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= ""; + table->s->table_cache_key= (char*) (table->s->db= ""); /* Calculate which type of fields we will store in the temporary table */