summaryrefslogtreecommitdiff
path: root/sql/sql_window.h
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2016-09-22 14:21:18 +0200
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2016-09-24 15:12:34 +0200
commit3dd3a5da0e9fbd8a24a178b2b295b5a385beba5e (patch)
tree37deca84f2ffe304421f72b5c3a41daf6cb2948e /sql/sql_window.h
parente992464f27c12abca621f420dc9650189173ab86 (diff)
downloadmariadb-git-3dd3a5da0e9fbd8a24a178b2b295b5a385beba5e.tar.gz
MDEV-9935: Window functions: assertion failure with empty OVER () clause
Make window functions work with an empty over clause by forcing a sort on the first column of the current join_tab. This is a temporary fix until we get window functions to work with big tables.
Diffstat (limited to 'sql/sql_window.h')
-rw-r--r--sql/sql_window.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_window.h b/sql/sql_window.h
index c3847240e9a..b94a1fc6dc4 100644
--- a/sql/sql_window.h
+++ b/sql/sql_window.h
@@ -186,7 +186,8 @@ private:
class Window_funcs_sort : public Sql_alloc
{
public:
- bool setup(THD *thd, SQL_SELECT *sel, List_iterator<Item_window_func> &it);
+ bool setup(THD *thd, SQL_SELECT *sel, List_iterator<Item_window_func> &it,
+ st_join_table *join_tab);
bool exec(JOIN *join);
void cleanup() { delete filesort; }