Loading sql/sql_select.cc +3 −0 Original line number Diff line number Diff line Loading @@ -541,6 +541,9 @@ JOIN::optimize() DBUG_RETURN(0); optimized= 1; if (thd->lex->orig_sql_command != SQLCOM_SHOW_STATUS) thd->status_var.last_query_cost= 0.0; row_limit= ((select_distinct || order || group_list) ? HA_POS_ERROR : unit->select_limit_cnt); /* select_limit is used to decide if we are likely to scan the whole table */ Loading Loading
sql/sql_select.cc +3 −0 Original line number Diff line number Diff line Loading @@ -541,6 +541,9 @@ JOIN::optimize() DBUG_RETURN(0); optimized= 1; if (thd->lex->orig_sql_command != SQLCOM_SHOW_STATUS) thd->status_var.last_query_cost= 0.0; row_limit= ((select_distinct || order || group_list) ? HA_POS_ERROR : unit->select_limit_cnt); /* select_limit is used to decide if we are likely to scan the whole table */ Loading