From 7af14ef896c0516c5caa3b3568e7b01718ecf96e Mon Sep 17 00:00:00 2001 From: chenlinfeng <723609220@qq.com> Date: Sun, 26 Sep 2021 18:56:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=86=85=E5=AD=98=E6=9C=AA?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/sql_tmp_table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_tmp_table.cc b/sql/sql_tmp_table.cc index afb923010cfa..a8134bacf955 100644 --- a/sql/sql_tmp_table.cc +++ b/sql/sql_tmp_table.cc @@ -445,7 +445,7 @@ Field *create_tmp_field(THD *thd, TABLE *table, Item *item, Item::Type type, DBUG_ASSERT(false); break; } - if (result != nullptr) { + if (result != nullptr && thd->parallel_exec) { result->extra_length = item->pq_extra_len(group); } return result;