From 47b7ca629f5e91465140375e3d40c49954c0566d Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Sun, 3 Mar 2019 07:20:15 +0400 Subject: MDEV-18796 Synchronize PS grammar between sql_yacc.yy and sql_yacc_ora.yy --- sql/sql_list.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sql/sql_list.h') diff --git a/sql/sql_list.h b/sql/sql_list.h index 27827b42be5..60ec8ab4177 100644 --- a/sql/sql_list.h +++ b/sql/sql_list.h @@ -518,6 +518,12 @@ public: empty(); } T *elem(uint n) { return (T*) base_list::elem(n); } + // Create a new list with one element + static List *make(MEM_ROOT *mem_root, T *first) + { + List *res= new (mem_root) List; + return res == NULL || res->push_back(first, mem_root) ? NULL : res; + } }; -- cgit v1.2.1