diff options
author | unknown <hf@deer.mysql.r18.ru> | 2003-04-16 11:08:21 +0500 |
---|---|---|
committer | unknown <hf@deer.mysql.r18.ru> | 2003-04-16 11:08:21 +0500 |
commit | ed7a26372879ef0da76c98ddc392fb8ad1604748 (patch) | |
tree | f4d7053112048010b385e2f27bdf2db631082291 /sql/sql_list.h | |
parent | fc6456b5c4966af2a633c4494404e279fe617c48 (diff) | |
download | mariadb-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.h | 2 |
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 == ¤t->next) && (new_list.elements > 1)) + list->last= new_list.last; list->elements+=new_list.elements-1; } return ret_value; // return old element |