diff options
author | unknown <hf@deer.mysql.r18.ru> | 2003-04-16 19:48:58 +0500 |
---|---|---|
committer | unknown <hf@deer.mysql.r18.ru> | 2003-04-16 19:48:58 +0500 |
commit | 0d898379a71fc1dc999dcf2503b6c7d4f885ce47 (patch) | |
tree | 38cc66a43a1e8f3b5c4a97d507a80db3e5df05e3 /sql | |
parent | 33ac47279b7367c816c90642f1b4e530c05f248e (diff) | |
download | mariadb-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.h | 2 |
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 == ¤t->next) && (new_list.elements > 1)) + list->last= new_list.last; list->elements+=new_list.elements-1; } return ret_value; // return old element |