diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 588d60462b0..69b0f6bb3a5 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -1071,7 +1071,7 @@ void Query_cache::invalidate(CHANGED_TABLE_LIST *tables_used) DUMP(this); for ( ; tables_used; tables_used=tables_used->next) { - invalidate_table(tables_used->key, tables_used->key_length); + invalidate_table((uchar *) tables_used->key, tables_used->key_length); DBUG_PRINT("qcache", (" db %s, table %s", tables_used->key, tables_used->table_name)); }