mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
olap.result, olap.test:
Added a test case for bug #8616. item.h: Fixed bug #8616. Added class Item_null_result used in rollup processing. sql_select.h, sql_select.cc: Fixed bug #8616. Added JOIN::rollup_write_data to cover rollup queries with DISTINCT. Modified other rollup methods.
This commit is contained in:
@ -124,7 +124,7 @@ typedef struct st_rollup
|
||||
{
|
||||
enum State { STATE_NONE, STATE_INITED, STATE_READY };
|
||||
State state;
|
||||
Item *item_null;
|
||||
Item_null_result **null_items;
|
||||
Item ***ref_pointer_arrays;
|
||||
List<Item> *fields;
|
||||
} ROLLUP;
|
||||
@ -295,6 +295,7 @@ class JOIN :public Sql_alloc
|
||||
bool rollup_make_fields(List<Item> &all_fields, List<Item> &fields,
|
||||
Item_sum ***func);
|
||||
int rollup_send_data(uint idx);
|
||||
int rollup_write_data(uint idx, TABLE *table);
|
||||
bool test_in_subselect(Item **where);
|
||||
void join_free(bool full);
|
||||
void clear();
|
||||
|
Reference in New Issue
Block a user