| 24066 | */ |
| 24067 | |
| 24068 | Next_select_func setup_end_select_func(JOIN *join) |
| 24069 | { |
| 24070 | TMP_TABLE_PARAM *tmp_tbl= &join->tmp_table_param; |
| 24071 | |
| 24072 | /* |
| 24073 | Choose method for presenting result to user. Use end_send_group |
| 24074 | if the query requires grouping (has a GROUP BY clause and/or one or |
| 24075 | more aggregate functions). Use end_send if the query should not |
| 24076 | be grouped. |
| 24077 | */ |
| 24078 | if (join->sort_and_group && !tmp_tbl->precomputed_group_by) |
| 24079 | { |
| 24080 | DBUG_PRINT("info",("Using end_send_group")); |
| 24081 | return end_send_group; |
| 24082 | } |
| 24083 | DBUG_PRINT("info",("Using end_send")); |
| 24084 | return end_send; |
| 24085 | } |
| 24086 | |
| 24087 | |
| 24088 | /** |
no outgoing calls
no test coverage detected