summaryrefslogtreecommitdiff
path: root/sql/sql_list.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-08-16 10:51:20 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-08-16 10:51:20 +0300
commitc221bcdce7714a74b89a02de941e8d8df2994ce3 (patch)
tree87a4e2d595ea3cc1465f212f26a9b9030655aa0c /sql/sql_list.h
parent3bbf008096fc997556459442bc2503c504248345 (diff)
parent395e1dcd176bbf0fcdb5d156bc58604590245a26 (diff)
downloadmariadb-git-c221bcdce7714a74b89a02de941e8d8df2994ce3.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'sql/sql_list.h')
-rw-r--r--sql/sql_list.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/sql_list.h b/sql/sql_list.h
index f5d8ed98b02..3585adbd714 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -1,6 +1,7 @@
#ifndef INCLUDES_MYSQL_SQL_LIST_H
#define INCLUDES_MYSQL_SQL_LIST_H
/* Copyright (c) 2000, 2012, Oracle and/or its affiliates.
+ Copyright (c) 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -48,6 +49,14 @@ public:
next= elements ? tmp.next : &first;
}
+ SQL_I_List& operator=(const SQL_I_List &tmp)
+ {
+ elements= tmp.elements;
+ first= tmp.first;
+ next= tmp.next;
+ return *this;
+ }
+
inline void empty()
{
elements= 0;
@@ -488,7 +497,6 @@ template <class T> class List :public base_list
{
public:
inline List() :base_list() {}
- inline List(const List<T> &tmp) :base_list(tmp) {}
inline List(const List<T> &tmp, MEM_ROOT *mem_root) :
base_list(tmp, mem_root) {}
inline bool push_back(T *a) { return base_list::push_back(a); }