1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

aliases should be compared with my_strcasecmp (BUG#3251)

some db comparison code cleupup
removed compiler warnings
This commit is contained in:
bell@sanja.is.com.ua
2004-03-22 15:43:13 +02:00
parent 7411ac19df
commit bbb6642a66
8 changed files with 34 additions and 16 deletions

View File

@ -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