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

Method save_explain_plan

sql/sql_window.cc:3256–3274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3254
3255
3256Explain_aggr_window_funcs*
3257Window_funcs_computation::save_explain_plan(MEM_ROOT *mem_root,
3258 bool is_analyze)
3259{
3260 Explain_aggr_window_funcs *xpl= new Explain_aggr_window_funcs;
3261 List_iterator<Window_funcs_sort> it(win_func_sorts);
3262 Window_funcs_sort *srt;
3263 if (!xpl)
3264 return 0;
3265 while ((srt = it++))
3266 {
3267 Explain_aggr_filesort *eaf=
3268 new Explain_aggr_filesort(mem_root, is_analyze, srt->filesort);
3269 if (!eaf)
3270 return 0;
3271 xpl->sorts.push_back(eaf, mem_root);
3272 }
3273 return xpl;
3274}
3275
3276
3277bool st_select_lex::add_window_func(THD *thd, Item_window_func *win_func)

Callers 1

save_agg_explain_dataFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected