| 3254 | |
| 3255 | |
| 3256 | Explain_aggr_window_funcs* |
| 3257 | Window_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 | |
| 3277 | bool st_select_lex::add_window_func(THD *thd, Item_window_func *win_func) |
no test coverage detected