summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2002-09-22 01:38:48 +0300
committerunknown <heikki@hundin.mysql.fi>2002-09-22 01:38:48 +0300
commit3b7333b4844377ae4683ce504e7509e49eb05f49 (patch)
treed0a19f1015346dd5078028e13684328feb0a9807 /innobase
parent01be46e20eae0bb0d6b0803cb4abd487599baf88 (diff)
downloadmariadb-git-3b7333b4844377ae4683ce504e7509e49eb05f49.tar.gz
row0ins.c, ha_innodb.cc:
Table hash key len in query cache also includes null char at end sql/ha_innodb.cc: Table hash key len in query cache also includes null char at end innobase/row/row0ins.c: Table hash key len in query cache also includes null char at end
Diffstat (limited to 'innobase')
-rw-r--r--innobase/row/row0ins.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/innobase/row/row0ins.c b/innobase/row/row0ins.c
index 7c20afbe467..941c9d5759d 100644
--- a/innobase/row/row0ins.c
+++ b/innobase/row/row0ins.c
@@ -44,9 +44,11 @@ innobase_invalidate_query_cache(
/*============================*/
trx_t* trx, /* in: transaction which modifies the table */
char* full_name, /* in: concatenation of database name, null
- char '\0', table name; NOTE that in
- Windows this is always in LOWER CASE! */
- ulint full_name_len); /* in: full name length */
+ char '\0', table name, null char'\0';
+ NOTE that in Windows this is always
+ in LOWER CASE! */
+ ulint full_name_len); /* in: full name length where also the null
+ chars count */
/*************************************************************************
@@ -426,7 +428,7 @@ row_ins_foreign_delete_or_set_null(
/* We call a function in ha_innodb.cc */
innobase_invalidate_query_cache(thr_get_trx(thr), table_name_buf,
- ut_strlen(table->name));
+ ut_strlen(table->name) + 1);
node = thr->run_node;
ut_a(que_node_get_type(node) == QUE_NODE_UPDATE);