diff options
author | bell@sanja.is.com.ua <> | 2004-03-22 15:43:13 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-03-22 15:43:13 +0200 |
commit | bbb6642a66be0b94c6a14ff2ae7ea27f31208e3d (patch) | |
tree | 9c2daacc3ecbf555341d9004c43b7a91dab4fe29 /sql/sql_db.cc | |
parent | 7411ac19df83581ba74ea45ae5e575abd423c68f (diff) | |
download | mariadb-git-bbb6642a66be0b94c6a14ff2ae7ea27f31208e3d.tar.gz |
aliases should be compared with my_strcasecmp (BUG#3251)
some db comparison code cleupup
removed compiler warnings
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r-- | sql/sql_db.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index 6aaca975e53..08582391754 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -504,7 +504,8 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db, found_other_files++; continue; } - if (db && !my_strcasecmp(&my_charset_latin1, + // just for safety we use files_charset_info + if (db && !my_strcasecmp(files_charset_info, extension, reg_ext)) { /* Drop the table nicely */ |