diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-10-02 10:19:40 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-10-05 17:14:15 +0200 |
commit | 7ca8b4bbfa3fc1ac12bbfc20530426fa534b9142 (patch) | |
tree | 9cc3720ca103f46bb84da6b2f77339a9a404e7c5 /storage/sequence | |
parent | 9ca3d9ea9cc3518706dc8e0e0ac89a58c34dc260 (diff) | |
download | mariadb-git-7ca8b4bbfa3fc1ac12bbfc20530426fa534b9142.tar.gz |
move internal API out from group_by_handler
into a Pushdown_query object
Diffstat (limited to 'storage/sequence')
-rw-r--r-- | storage/sequence/sequence.cc | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/storage/sequence/sequence.cc b/storage/sequence/sequence.cc index ba8e157c3e4..46dcd2f3296 100644 --- a/storage/sequence/sequence.cc +++ b/storage/sequence/sequence.cc @@ -362,15 +362,12 @@ class ha_seq_group_by_handler: public group_by_handler bool first_row; public: - ha_seq_group_by_handler(THD *thd, SELECT_LEX *select_lex, - List<Item> *fields, - TABLE_LIST *table_list, ORDER *group_by, - ORDER *order_by, Item *where, - Item *having) - :group_by_handler(thd, select_lex, fields, table_list, group_by, - order_by, where, having, sequence_hton) - { - } + ha_seq_group_by_handler(THD *thd_arg, List<Item> *fields_arg, + TABLE_LIST *table_list_arg, ORDER *group_by_arg, + ORDER *order_by_arg, Item *where_arg, + Item *having_arg) + :group_by_handler(thd_arg, fields_arg, table_list_arg, group_by_arg, + order_by_arg, where_arg, having_arg, sequence_hton) {} ~ha_seq_group_by_handler() {} bool init(TABLE *temporary_table, Item *having_arg, ORDER *order_by_arg); @@ -380,10 +377,8 @@ public: }; static group_by_handler * -create_group_by_handler(THD *thd, SELECT_LEX *select_lex, - List<Item> *fields, - TABLE_LIST *table_list, ORDER *group_by, - ORDER *order_by, Item *where, +create_group_by_handler(THD *thd, List<Item> *fields, TABLE_LIST *table_list, + ORDER *group_by, ORDER *order_by, Item *where, Item *having) { ha_seq_group_by_handler *handler; @@ -432,8 +427,7 @@ create_group_by_handler(THD *thd, SELECT_LEX *select_lex, } /* Create handler and return it */ - handler= new ha_seq_group_by_handler(thd, select_lex, fields, table_list, - group_by, + handler= new ha_seq_group_by_handler(thd, fields, table_list, group_by, order_by, where, having); return handler; } |