summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2016-04-14 00:47:28 -0700
committerIgor Babaev <igor@askmonty.org>2016-04-14 00:47:28 -0700
commit5ff4b21e02dee1879436ebb4a484f0d2e756acaf (patch)
treee3da6ccb7f78662a3040807768711ee2f998b841 /sql/sql_select.h
parentb532be9f8ce4872be4a3f1ef2fa296a1de347859 (diff)
downloadmariadb-git-5ff4b21e02dee1879436ebb4a484f0d2e756acaf.tar.gz
Fixed bug mdev-9897.
This bug revealed a serious problem: if the same partition list was used in two window specifications then the temporary table created to calculate window functions contained fields for two identical partitions. This problem was fixed as well.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index 1718a4676f1..d4dc691c547 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -1942,10 +1942,11 @@ int get_quick_record(SQL_SELECT *select);
SORT_FIELD * make_unireg_sortorder(THD *thd, ORDER *order, uint *length,
SORT_FIELD *sortorder);
int setup_order(THD *thd, Ref_ptr_array ref_pointer_array, TABLE_LIST *tables,
- List<Item> &fields, List <Item> &all_fields, ORDER *order);
+ List<Item> &fields, List <Item> &all_fields, ORDER *order,
+ bool search_in_all_fields= true);
int setup_group(THD *thd, Ref_ptr_array ref_pointer_array, TABLE_LIST *tables,
List<Item> &fields, List<Item> &all_fields, ORDER *order,
- bool *hidden_group_fields);
+ bool *hidden_group_fields, bool search_in_all_fields= true);
bool fix_inner_refs(THD *thd, List<Item> &all_fields, SELECT_LEX *select,
Ref_ptr_array ref_pointer_array);
int join_read_key2(THD *thd, struct st_join_table *tab, TABLE *table,