diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 1ee31c788ff..483f9f6e2e3 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -1229,7 +1229,7 @@ JOIN::optimize() ((select_distinct || !simple_order || !simple_group) || (group_list && order) || test(select_options & OPTION_BUFFER_RESULT))) || - rollup.state != ROLLUP::STATE_NONE && select_distinct); + (rollup.state != ROLLUP::STATE_NONE && select_distinct)); // No cache for MATCH make_join_readinfo(this,