summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <hf@deer.mysql.r18.ru>2003-04-16 19:48:58 +0500
committerunknown <hf@deer.mysql.r18.ru>2003-04-16 19:48:58 +0500
commit0d898379a71fc1dc999dcf2503b6c7d4f885ce47 (patch)
tree38cc66a43a1e8f3b5c4a97d507a80db3e5df05e3 /sql
parent33ac47279b7367c816c90642f1b4e530c05f248e (diff)
downloadmariadb-git-0d898379a71fc1dc999dcf2503b6c7d4f885ce47.tar.gz
fix for bug #212
sql/sql_list.h: We should reset list::last here
Diffstat (limited to 'sql')
-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 542eef623f0..d42c344957c 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -180,6 +180,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