From 12d5307e95687e543f80aa3e8636a2ab8b96fe8d Mon Sep 17 00:00:00 2001 From: Monty Date: Sat, 10 Feb 2018 14:24:15 +0200 Subject: MDEV-13508 ALTER TABLE that renames columns and CHECK constraints Fixed by adding Item::rename_fields_processor Signed-off-by: Monty --- sql/sql_list.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sql/sql_list.h') diff --git a/sql/sql_list.h b/sql/sql_list.h index 321041cf200..c27ed44cb9c 100644 --- a/sql/sql_list.h +++ b/sql/sql_list.h @@ -200,7 +200,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 *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 *list, MEM_ROOT *root) + { return base_list::copy(list, root); } void delete_elements(void) { list_node *element,*next; -- cgit v1.2.1