diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index cd4652b19beec61456904b1255f65fe8714fdf9d..7e8e76f5e137a5894fde21caba7daf74e70bd97b 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -1007,6 +1007,7 @@ init_lex_with_single_table(THD *thd, TABLE *table, LEX *lex) table->map= 1; //To ensure correct calculation of const item table->get_fields_in_item_tree= TRUE; table_list->table= table; + table_list->cacheable_table= false; return FALSE; }