From 7a1976fd7f295288a8bd9ba323e957585d95e10f Mon Sep 17 00:00:00 2001 From: marko Date: Thu, 19 Apr 2007 11:44:07 +0000 Subject: [PATCH] Merge a change from MySQL AB: ChangeSet@2007-04-03 16:13:27+05:00, gluh@mysql.com Bug#21432 Database/Table name limited to 64 bytes, not chars, problems with multi-byte ==== storage/innobase/handler/ha_innodb.cc ==== 2007-04-03 16:13:25+05:00, gluh@mysql.com +2 -2 removed unnecessary multiplication --- handler/ha_innodb.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/ha_innodb.cc b/handler/ha_innodb.cc index 4d7b45337cf..8ac713a1ad4 100644 --- a/handler/ha_innodb.cc +++ b/handler/ha_innodb.cc @@ -5974,8 +5974,8 @@ ha_innobase::get_foreign_key_list(THD *thd, List *f_key_list) FOREIGN_KEY_INFO f_key_info; LEX_STRING *name= 0; uint ulen; - char uname[NAME_LEN*3+1]; /* Unencoded name */ - char db_name[NAME_LEN*3+1]; + char uname[NAME_LEN+1]; /* Unencoded name */ + char db_name[NAME_LEN+1]; const char *tmp_buff; tmp_buff= foreign->id;