From df7fc49df84e79efd849373257198948e9175332 Mon Sep 17 00:00:00 2001 From: z30033144 Date: Sat, 15 Oct 2022 15:17:59 +0800 Subject: [PATCH] Fixed the issue where the temporary alias of SQL query is incorrect. --- sql/sql_executor.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/sql/sql_executor.cc b/sql/sql_executor.cc index 2dd2eaa6..bb323aea 100644 --- a/sql/sql_executor.cc +++ b/sql/sql_executor.cc @@ -4310,7 +4310,6 @@ setup_copy_fields(THD *thd, Temp_table_param *param, real_pos->type() == Item::COND_ITEM) && !real_pos->with_sum_func) { // Save for send fields - pos= real_pos; /* TODO: In most cases this result will be sent to the user. This should be changed to use copy_int or copy_real depending -- 2.25.1