From 9fa49d5dcabb83865863bfc6d93c4ccb285dad74 Mon Sep 17 00:00:00 2001 From: bf0 Date: Wed, 23 Mar 2022 14:01:34 +0800 Subject: [PATCH] fix trim expr deduce bug --- src/sql/engine/expr/ob_expr_trim.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sql/engine/expr/ob_expr_trim.cpp b/src/sql/engine/expr/ob_expr_trim.cpp index 366bfb659..5f5d93e4a 100644 --- a/src/sql/engine/expr/ob_expr_trim.cpp +++ b/src/sql/engine/expr/ob_expr_trim.cpp @@ -411,9 +411,9 @@ inline int ObExprTrim::deduce_result_type( // deduce charset ObSEArray tmp_types; OZ(tmp_types.push_back(*str_type)); - if (NULL != pattern_type) { - OZ(tmp_types.push_back(*pattern_type)); - } + // if (NULL != pattern_type) { + // OZ(tmp_types.push_back(*pattern_type)); + //} OZ(aggregate_charsets_for_string_result_with_comparison( type, &tmp_types.at(0), tmp_types.count(), type_ctx.get_coll_type())); str_type->set_calc_collation_type(type.get_collation_type()); -- GitLab