1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

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

Bug #12112
This commit is contained in:
pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se
2005-07-27 18:13:48 -04:00
parent 5ac378ba15
commit 4df1652294

View File

@@ -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;