MCPcopy Create free account
hub / github.com/MariaDB/server / setup_end_select_func

Function setup_end_select_func

sql/sql_select.cc:24068–24085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24066*/
24067
24068Next_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/**

Callers 2

make_aggr_tables_infoMethod · 0.85
do_selectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected