From 060c4c575f2e8a1bca78358a3f886c923a262f0f Mon Sep 17 00:00:00 2001 From: obdev Date: Tue, 11 Apr 2023 13:04:59 +0800 Subject: [PATCH] [CP] [to #48317576] fix get ddl chinese comments are garbled --- src/sql/ob_spi.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sql/ob_spi.cpp b/src/sql/ob_spi.cpp index f8a7dc17e..7510d227d 100644 --- a/src/sql/ob_spi.cpp +++ b/src/sql/ob_spi.cpp @@ -5980,6 +5980,9 @@ int ObSPIService::convert_obj(ObPLExecCtx *ctx, for (int i = 0; OB_SUCC(ret) && i < obj_array.count(); ++i) { ObObj &obj = obj_array.at(i); tmp_obj.reset(); + if (obj.is_clob()) { + obj.set_collation_type(result_types[i].get_collation_type()); + } obj.set_collation_level(result_types[i].get_collation_level()); LOG_DEBUG("column convert", K(obj.get_meta()), K(result_types[i].get_meta_type()), K(current_type.at(i)), K(result_types[i].get_accuracy()));