summaryrefslogtreecommitdiff
path: root/sql/sql_list.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2018-02-12 10:03:28 +0400
committerAlexander Barkov <bar@mariadb.org>2018-02-12 10:03:28 +0400
commitda99e086f90a4ec5a1188e51f4cc1dfc952ba771 (patch)
tree78fe85a44e55865d8cf7628764d5545f3f5e629b /sql/sql_list.h
parent5559905d4186ce62c9df49d41d0f05c1189fd753 (diff)
parent7a106d19614cb052ecf245e3825b9510e8029ba0 (diff)
downloadmariadb-git-da99e086f90a4ec5a1188e51f4cc1dfc952ba771.tar.gz
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
Diffstat (limited to 'sql/sql_list.h')
-rw-r--r--sql/sql_list.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_list.h b/sql/sql_list.h
index 4f76c495d3e..f3e6d80dc87 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -202,7 +202,8 @@ public:
need to copy elements by value, you should employ
list_copy_and_replace_each_value after creating a copy.
*/
- base_list(const base_list &rhs, MEM_ROOT *mem_root);
+ bool copy(const base_list *rhs, MEM_ROOT *mem_root);
+ base_list(const base_list &rhs, MEM_ROOT *mem_root) { copy(&rhs, mem_root); }
inline base_list(bool error) { }
inline bool push_back(void *info)
{
@@ -536,6 +537,8 @@ public:
inline void disjoin(List<T> *list) { base_list::disjoin(list); }
inline bool add_unique(T *a, bool (*eq)(T *a, T *b))
{ return base_list::add_unique(a, (List_eq *)eq); }
+ inline bool copy(const List<T> *list, MEM_ROOT *root)
+ { return base_list::copy(list, root); }
void delete_elements(void)
{
list_node *element,*next;