diff options
author | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2016-03-28 16:57:41 +0300 |
---|---|---|
committer | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2016-03-28 22:51:42 +0300 |
commit | bf18dac08fe0ae18975158e786fee097883949d4 (patch) | |
tree | 80efd0ffc352d43cf6496be28c125e08da605048 /sql/item_windowfunc.h | |
parent | 44fdb56c977259b2801c612116813beda403df78 (diff) | |
download | mariadb-git-bf18dac08fe0ae18975158e786fee097883949d4.tar.gz |
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.
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r-- | sql/item_windowfunc.h | 6 |
1 files changed, 3 insertions, 3 deletions
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: |