summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorsergefp@mysql.com <>2005-02-14 23:49:01 +0300
committersergefp@mysql.com <>2005-02-14 23:49:01 +0300
commitc30f7feba1c0e64b1071b6edda2c4d2ec980844d (patch)
treef59f081a6ecc00ab3061062346452a81619cfa08 /sql
parentac7dd8265a6835e4ec1254aafe26fb4f60b69982 (diff)
parent021f9849ef519487f33f5439f4374c9b7082d3f4 (diff)
downloadmariadb-git-c30f7feba1c0e64b1071b6edda2c4d2ec980844d.tar.gz
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/psergey/mysql-4.1-bug8218
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_class.h9
-rw-r--r--sql/sql_select.cc3
2 files changed, 7 insertions, 5 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 657a92b394c..703bb030ab9 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -1295,7 +1295,11 @@ public:
#include <myisam.h>
-/* Param to create temporary tables when doing SELECT:s */
+/*
+ Param to create temporary tables when doing SELECT:s
+ NOTE
+ This structure is copied using memcpy as a part of JOIN.
+*/
class TMP_TABLE_PARAM :public Sql_alloc
{
@@ -1307,7 +1311,6 @@ private:
public:
List<Item> copy_funcs;
List<Item> save_copy_funcs;
- List_iterator_fast<Item> copy_funcs_it;
Copy_field *copy_field, *copy_field_end;
Copy_field *save_copy_field, *save_copy_field_end;
byte *group_buff;
@@ -1324,7 +1327,7 @@ public:
uint convert_blob_length;
TMP_TABLE_PARAM()
- :copy_funcs_it(copy_funcs), copy_field(0), group_parts(0),
+ :copy_field(0), group_parts(0),
group_length(0), group_null_parts(0), convert_blob_length(0)
{}
~TMP_TABLE_PARAM()
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index a4dea2ba5f4..05314097ca3 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -8614,8 +8614,7 @@ copy_fields(TMP_TABLE_PARAM *param)
for (; ptr != end; ptr++)
(*ptr->do_copy)(ptr);
- List_iterator_fast<Item> &it=param->copy_funcs_it;
- it.rewind();
+ List_iterator_fast<Item> it(param->copy_funcs);
Item_copy_string *item;
while ((item = (Item_copy_string*) it++))
item->copy();