summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index df06bcfd5c0..9a4ce1b81a4 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -2476,7 +2476,9 @@ TABLE_COUNTER_TYPE Query_cache::is_cacheable(THD *thd, uint32 query_len,
(tables_used->db_length == 5 &&
#ifdef FN_NO_CASE_SENCE
// TODO: latin1 charset should be replaced with system charset
- my_strncasecmp(my_charset_latin1,tables_used->db,"mysql",5) == 0
+ my_strncasecmp(&my_charset_latin1,
+ tables_used->db,
+ "mysql",5) == 0
#else
tables_used->db[0]=='m' &&
tables_used->db[1]=='y' &&