From b13d453d50c47b647c868b9dcb425133eb58c776 Mon Sep 17 00:00:00 2001 From: "monty@tik.mysql.fi" <> Date: Thu, 2 Aug 2001 06:29:50 +0300 Subject: Fix UNION New faster list iterators Change list code to be simpler and faster Optimize count(distinct) New error messages for UNION Make create_tmp_table more general to be usable by UNION --- sql/sql_select.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sql/sql_select.h') diff --git a/sql/sql_select.h b/sql/sql_select.h index 0ec1854d641..4fcffae31d2 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -118,19 +118,21 @@ typedef struct st_position { /* Used in find_best */ class TMP_TABLE_PARAM { public: List copy_funcs; - Copy_field *copy_field; + List_iterator_fast copy_funcs_it; + Copy_field *copy_field, *copy_field_end; byte *group_buff; Item_result_field **funcs; MI_COLUMNDEF *recinfo,*start_recinfo; KEY *keyinfo; ha_rows end_write_records; - uint copy_field_count,field_count,sum_func_count,func_count; + uint field_count,sum_func_count,func_count; uint hidden_field_count; uint group_parts,group_length; uint quick_group; bool using_indirect_summary_function; - TMP_TABLE_PARAM() :copy_field(0), group_parts(0), group_length(0) + TMP_TABLE_PARAM() + :copy_funcs_it(copy_funcs), copy_field(0), group_parts(0), group_length(0) {} ~TMP_TABLE_PARAM() { -- cgit v1.2.1