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

Function make_group_fields

sql/sql_select.cc:29554–29569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29552*/
29553
29554static bool
29555make_group_fields(JOIN *main_join, JOIN *curr_join)
29556{
29557 if (main_join->group_fields_cache.elements)
29558 {
29559 curr_join->group_fields= main_join->group_fields_cache;
29560 curr_join->sort_and_group= 1;
29561 }
29562 else
29563 {
29564 if (alloc_group_fields(curr_join, curr_join->group_list))
29565 return (1);
29566 main_join->group_fields_cache= curr_join->group_fields;
29567 }
29568 return (0);
29569}
29570
29571static bool
29572fill_cached_item_list(THD *thd, List<Cached_item> *list, ORDER *order,

Callers 1

make_aggr_tables_infoMethod · 0.85

Calls 1

alloc_group_fieldsFunction · 0.85

Tested by

no test coverage detected