summaryrefslogtreecommitdiff
path: root/sql/lock.cc
diff options
context:
space:
mode:
authorunknown <pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se>2005-07-27 18:13:48 -0400
committerunknown <pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se>2005-07-27 18:13:48 -0400
commit9bbcede4fa03cac77ab97fb1c9ac1048b354eaf8 (patch)
treebea69b471b5ba7acad97deeda96c5b35238b29e4 /sql/lock.cc
parent852247019998f78fcac13dfc32d468526dd3a148 (diff)
downloadmariadb-git-9bbcede4fa03cac77ab97fb1c9ac1048b354eaf8.tar.gz
Missing initialisation of table->s->db in lock_table_name
Bug #12112
Diffstat (limited to 'sql/lock.cc')
-rw-r--r--sql/lock.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/lock.cc b/sql/lock.cc
index 376a582ae32..889761369b6 100644
--- a/sql/lock.cc
+++ b/sql/lock.cc
@@ -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;