Commit 9bbcede4 authored by unknown's avatar unknown

Missing initialisation of table->s->db in lock_table_name

Bug #12112

parent 85224701
......@@ -601,6 +601,7 @@ int lock_table_name(THD *thd, TABLE_LIST *table_list)
DBUG_RETURN(-1);
table->s= &table->share_not_to_be_used;
memcpy((table->s->table_cache_key= (char*) (table+1)), key, key_length);
table->s->db= table->s->table_cache_key;
table->s->key_length=key_length;
table->in_use=thd;
table->locked_by_name=1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment