Commit a1d734e0 authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0

into sanja.is.com.ua:/home/bell/mysql/bk/work-2-5.0
parents 7145dedb 108be666
...@@ -2088,7 +2088,7 @@ Item_func_group_concat::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref) ...@@ -2088,7 +2088,7 @@ Item_func_group_concat::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
result_field= 0; result_field= 0;
null_value= 1; null_value= 1;
max_length= group_concat_max_len; max_length= group_concat_max_len;
thd->allow_sum_func= 1; thd->allow_sum_func= 1;
if (!(tmp_table_param= new TMP_TABLE_PARAM)) if (!(tmp_table_param= new TMP_TABLE_PARAM))
return 1; return 1;
tables_list= tables; tables_list= tables;
...@@ -2102,7 +2102,6 @@ bool Item_func_group_concat::setup(THD *thd) ...@@ -2102,7 +2102,6 @@ bool Item_func_group_concat::setup(THD *thd)
List<Item> list; List<Item> list;
SELECT_LEX *select_lex= thd->lex->current_select; SELECT_LEX *select_lex= thd->lex->current_select;
uint const_fields; uint const_fields;
byte *record;
qsort_cmp2 compare_key; qsort_cmp2 compare_key;
DBUG_ENTER("Item_func_group_concat::setup"); DBUG_ENTER("Item_func_group_concat::setup");
...@@ -2111,7 +2110,7 @@ bool Item_func_group_concat::setup(THD *thd) ...@@ -2111,7 +2110,7 @@ bool Item_func_group_concat::setup(THD *thd)
/* /*
push all not constant fields to list and create temp table push all not constant fields to list and create temp table
*/ */
const_fields= 0; const_fields= 0;
always_null= 0; always_null= 0;
for (uint i= 0; i < arg_count_field; i++) for (uint i= 0; i < arg_count_field; i++)
...@@ -2129,15 +2128,15 @@ bool Item_func_group_concat::setup(THD *thd) ...@@ -2129,15 +2128,15 @@ bool Item_func_group_concat::setup(THD *thd)
} }
if (always_null) if (always_null)
DBUG_RETURN(0); DBUG_RETURN(0);
List<Item> all_fields(list); List<Item> all_fields(list);
if (arg_count_order) if (arg_count_order)
{ {
bool hidden_group_fields; bool hidden_group_fields;
setup_group(thd, args, tables_list, list, all_fields, *order, setup_group(thd, args, tables_list, list, all_fields, *order,
&hidden_group_fields); &hidden_group_fields);
} }
count_field_types(tmp_table_param,all_fields,0); count_field_types(tmp_table_param,all_fields,0);
if (table) if (table)
{ {
...@@ -2163,7 +2162,6 @@ bool Item_func_group_concat::setup(THD *thd) ...@@ -2163,7 +2162,6 @@ bool Item_func_group_concat::setup(THD *thd)
table->no_rows= 1; table->no_rows= 1;
key_length= table->reclength; key_length= table->reclength;
record= table->record[0];
/* Offset to first result field in table */ /* Offset to first result field in table */
field_list_offset= table->fields - (list.elements - const_fields); field_list_offset= table->fields - (list.elements - const_fields);
......
...@@ -2519,7 +2519,6 @@ longlong Item_func_timestamp_diff::val_int() ...@@ -2519,7 +2519,6 @@ longlong Item_func_timestamp_diff::val_int()
uint year; uint year;
uint year_beg, year_end, month_beg, month_end; uint year_beg, year_end, month_beg, month_end;
uint diff_days= (uint) (seconds/86400L); uint diff_days= (uint) (seconds/86400L);
uint diff_months= 0;
uint diff_years= 0; uint diff_years= 0;
if (neg == -1) if (neg == -1)
{ {
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment