From bc8f8d95dbad7bc37fd0977f386f9aa5ff3f6ac5 Mon Sep 17 00:00:00 2001 From: "hf@deer.mysql.r18.ru" <> Date: Wed, 16 Apr 2003 11:08:21 +0500 Subject: [PATCH] Fix for bug #212 --- sql/sql_list.h | 2 ++ 1 file changed, 2 insertions(+) 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 == ¤t->next) && (new_list.elements > 1)) + list->last= new_list.last; list->elements+=new_list.elements-1; } return ret_value; // return old element