summaryrefslogtreecommitdiff
path: root/sql/sql_list.h
diff options
context:
space:
mode:
authorunknown <hf@deer.mysql.r18.ru>2003-04-16 11:08:21 +0500
committerunknown <hf@deer.mysql.r18.ru>2003-04-16 11:08:21 +0500
commited7a26372879ef0da76c98ddc392fb8ad1604748 (patch)
treef4d7053112048010b385e2f27bdf2db631082291 /sql/sql_list.h
parentfc6456b5c4966af2a633c4494404e279fe617c48 (diff)
downloadmariadb-git-ed7a26372879ef0da76c98ddc392fb8ad1604748.tar.gz
Fix for bug #212
sql/sql_list.h: Here we should reset item::last sometimes
Diffstat (limited to 'sql/sql_list.h')
-rw-r--r--sql/sql_list.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_list.h b/sql/sql_list.h
index 505ea994d42..6eb4f98c011 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -201,6 +201,8 @@ public:
*new_list.last=current->next;
current->info=new_list.first->info;
current->next=new_list.first->next;
+ if ((list->last == &current->next) && (new_list.elements > 1))
+ list->last= new_list.last;
list->elements+=new_list.elements-1;
}
return ret_value; // return old element