From affa57319078e5293f4c5cbf99093cc30ee97434 Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 16 May 2022 20:36:26 +0800 Subject: [PATCH] [CP] fix case compare bug --- src/sql/ob_sql_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/ob_sql_context.cpp b/src/sql/ob_sql_context.cpp index 52e4d140b9..916b840733 100644 --- a/src/sql/ob_sql_context.cpp +++ b/src/sql/ob_sql_context.cpp @@ -632,7 +632,7 @@ int ObQueryCtx::append_id_to_stmt_name(char* buf, int64_t buf_len, int64_t& pos, } else { bool find_dup = false; for (int64_t i = 0; !find_dup && i < stmt_id_name_map_.count(); ++i) { - if (0 == stmt_id_name_map_.at(i).origin_name_.case_compare(buf)) { + if (0 == stmt_id_name_map_.at(i).origin_name_.case_compare(ObString(pos, buf))) { find_dup = true; } else { } // do nothing -- GitLab