From bf18dac08fe0ae18975158e786fee097883949d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicen=C8=9Biu=20Ciorbaru?= Date: Mon, 28 Mar 2016 16:57:41 +0300 Subject: Lay the groundwork for variable number of cursors. Instead of relying solely on top bound and bottom bound cursors, now we create a list of cursors that are iterated over. --- sql/item_windowfunc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sql/item_windowfunc.h') diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h index 9695698bbd9..6f91bc86301 100644 --- a/sql/item_windowfunc.h +++ b/sql/item_windowfunc.h @@ -499,11 +499,11 @@ public: force_return_blank(true), read_value_from_result_field(false) {} - Item_sum *window_func() { return (Item_sum *) args[0]; } + Item_sum *window_func() const { return (Item_sum *) args[0]; } void update_used_tables(); - bool is_frame_prohibited() + bool is_frame_prohibited() const { switch (window_func()->sum_func()) { case Item_sum::ROW_NUMBER_FUNC: @@ -517,7 +517,7 @@ public: } } - bool is_order_list_mandatory() + bool is_order_list_mandatory() const { switch (window_func()->sum_func()) { case Item_sum::RANK_FUNC: -- cgit v1.2.1