mirror of
https://github.com/MariaDB/server.git
synced 2026-03-19 06:48:40 +01:00
Optimization in st_select_lex_unit::prepare() removes ORDER BY for certain subqueries. That excludes ORDER BY items from being fixed, but sl->window_funcs still contains window function items and those related to optimized out ORDER BY are unfixed. The error about missing window spec is thrown when the item is fixed. Hence we get redundant processing of window function items without checking window spec existence. The fix removes the related window function items when ORDER BY is optimized out. ORDER accumulates window_funcs at parser stage which are then removed from SELECT_LEX::window_funcs. The fix also updates similar optimization in mysql_make_view(). |
||
|---|---|---|
| .. | ||
| wolfssl@b077c81eb6 | ||
| CMakeLists.txt | ||
| user_settings.h.in | ||