diff options
author | unknown <marko@hundin.mysql.fi> | 2004-05-10 17:16:29 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2004-05-10 17:16:29 +0300 |
commit | 9e18773c7a6d5c5891e310bcdaa1d123e629d1d6 (patch) | |
tree | aad8b933e0fd870d7e683a7a3834eac85f0cae50 | |
parent | 2abb48defbd96d3ff0200159004a076092d4ceea (diff) | |
parent | b89bb86751356b4fdc422bfd7f75f1f787da475f (diff) | |
download | mariadb-git-9e18773c7a6d5c5891e310bcdaa1d123e629d1d6.tar.gz |
Merge marko@build.mysql.com:/home/bk/mysql-4.0
into hundin.mysql.fi:/home/marko/j/mysql-4.0
-rw-r--r-- | innobase/row/row0mysql.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/innobase/row/row0mysql.c b/innobase/row/row0mysql.c index bdc47ca0e8e..228f19c865f 100644 --- a/innobase/row/row0mysql.c +++ b/innobase/row/row0mysql.c @@ -2208,10 +2208,11 @@ row_drop_database_for_mysql( dict_table_t* table; char* table_name; int err = DB_SUCCESS; + ulint namelen = strlen(name); ut_ad(trx->mysql_thread_id == os_thread_get_curr_id()); ut_a(name != NULL); - ut_a(name[strlen(name) - 1] == '/'); + ut_a(name[namelen - 1] == '/'); trx->op_info = (char *) "dropping database"; @@ -2220,7 +2221,7 @@ loop: row_mysql_lock_data_dictionary(trx); while ((table_name = dict_get_first_table_name_in_db(name))) { - ut_a(strcmp(table_name, name) == 0); + ut_a(memcmp(table_name, name, namelen) == 0); table = dict_table_get_low(table_name); |