diff options
author | unknown <bell@sanja.is.com.ua> | 2004-03-22 15:43:13 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-03-22 15:43:13 +0200 |
commit | 560fc0379bead7a21537df20b80beb8b73cc7c48 (patch) | |
tree | 9c2daacc3ecbf555341d9004c43b7a91dab4fe29 /sql/sql_cache.cc | |
parent | afbf1bbaa40614b965752c9c8dd2ca28c4428cb0 (diff) | |
download | mariadb-git-560fc0379bead7a21537df20b80beb8b73cc7c48.tar.gz |
aliases should be compared with my_strcasecmp (BUG#3251)
some db comparison code cleupup
removed compiler warnings
mysql-test/r/lowercase_table.result:
test for BUG#3251
mysql-test/t/lowercase_table.test:
test for BUG#3251
sql/item.cc:
simple strcmp can be used for db name comparison
sql/set_var.h:
changed initialisation order to satisfy compiler
sql/sql_cache.cc:
simple strcmp can be used for db name comparison
sql/sql_db.cc:
better use special cherset for files
sql/sql_parse.cc:
simple strcmp can be used for db name comparison
aliases should be compared with my_strcasecmp
sql/sql_select.cc:
aliases should be compared with my_strcasecmp
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r-- | sql/sql_cache.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index afeee044799..40d9b1b42d8 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -1259,12 +1259,7 @@ void Query_cache::invalidate(char *db) do { next= curr->next; - /* - table_alias_charset used here because it depends of - lower_case_table_names variable - */ - if (my_strcasecmp(table_alias_charset, db, - (char*)(curr->table()->db())) == 0) + if (strcmp(db, (char*)(curr->table()->db())) == 0) invalidate_table(curr); /* invalidate_table can freed block on which point 'next' (if |