diff options
author | monty@tik.mysql.fi <> | 2001-08-02 06:29:50 +0300 |
---|---|---|
committer | monty@tik.mysql.fi <> | 2001-08-02 06:29:50 +0300 |
commit | b13d453d50c47b647c868b9dcb425133eb58c776 (patch) | |
tree | fc9655d17169cd0d2593f7a2e888de91cd33dfe8 /sql/sql_select.h | |
parent | 423f2851c57a253166d4e98cc71dc5177632ca10 (diff) | |
download | mariadb-git-b13d453d50c47b647c868b9dcb425133eb58c776.tar.gz |
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
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 8 |
1 files changed, 5 insertions, 3 deletions
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<Item> copy_funcs; - Copy_field *copy_field; + List_iterator_fast<Item> 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() { |