From a838b10466b537314f4f15c035ba9680234bdd72 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 8 Nov 2016 09:24:23 +0100 Subject: [PATCH] bugfix: delayed insert table was using other table's expr_arena --- sql/sql_insert.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 7c0c1b68a2b..ef17c3f1f10 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -2451,6 +2451,7 @@ TABLE *Delayed_insert::get_local_table(THD* client_thd) goto error; dfield_ptr= copy->default_field; } + copy->expr_arena= NULL; /* Ensure we don't use the table list of the original table */ copy->pos_in_table_list= 0;