mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 14:15:33 +02:00
Merge from 5.1 to 5.5
sql/sql_class.h: Parsing for group_concat's order by is made independent. As a result, add_order_to_list cannot be used anymore.
This commit is contained in:
commit
51555d2ae3
6 changed files with 42 additions and 17 deletions
|
|
@ -3009,11 +3009,12 @@ int dump_leaf_key(void* key_arg, element_count count __attribute__((unused)),
|
|||
Item_func_group_concat::
|
||||
Item_func_group_concat(Name_resolution_context *context_arg,
|
||||
bool distinct_arg, List<Item> *select_list,
|
||||
SQL_I_List<ORDER> *order_list, String *separator_arg)
|
||||
const SQL_I_List<ORDER> &order_list,
|
||||
String *separator_arg)
|
||||
:tmp_table_param(0), separator(separator_arg), tree(0),
|
||||
unique_filter(NULL), table(0),
|
||||
order(0), context(context_arg),
|
||||
arg_count_order(order_list ? order_list->elements : 0),
|
||||
arg_count_order(order_list.elements),
|
||||
arg_count_field(select_list->elements),
|
||||
row_count(0),
|
||||
distinct(distinct_arg),
|
||||
|
|
@ -3053,7 +3054,7 @@ Item_func_group_concat(Name_resolution_context *context_arg,
|
|||
if (arg_count_order)
|
||||
{
|
||||
ORDER **order_ptr= order;
|
||||
for (ORDER *order_item= order_list->first;
|
||||
for (ORDER *order_item= order_list.first;
|
||||
order_item != NULL;
|
||||
order_item= order_item->next)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue