diff --git a/src/share/schema/ob_schema_struct.cpp b/src/share/schema/ob_schema_struct.cpp index 51b7d07729..9945f65816 100644 --- a/src/share/schema/ob_schema_struct.cpp +++ b/src/share/schema/ob_schema_struct.cpp @@ -5200,6 +5200,7 @@ void ObBasePartition::reset() is_empty_partition_name_ = false; tablespace_id_ = OB_INVALID_ID; partition_type_ = PARTITION_TYPE_NORMAL; + name_.reset(); ObSchema::reset(); } diff --git a/src/sql/engine/expr/ob_expr_to_outfile_row.cpp b/src/sql/engine/expr/ob_expr_to_outfile_row.cpp index 8163a8461b..11f8129e7e 100644 --- a/src/sql/engine/expr/ob_expr_to_outfile_row.cpp +++ b/src/sql/engine/expr/ob_expr_to_outfile_row.cpp @@ -241,9 +241,9 @@ int ObExprToOutfileRow::print_field(char *buf, const int64_t buf_len, int64_t &p OZ(obj.print_plain_str_literal(buf, buf_len, pos, out_info.print_params_)); } else if (obj.is_null()) { OZ(out_info.escape_.print_plain_str_literal(buf, buf_len, pos, out_info.print_params_)); - OZ(print_wchar_to_buf(buf, buf_len, pos, 'N', out_info.print_params_.cs_type_)); - } else if (obj.is_string_or_lob_locator_type() && obj.get_collation_type() == CS_TYPE_BINARY) { - OZ(obj.print_plain_str_literal(buf, buf_len, pos, out_info.print_params_)); + OZ(print_wchar_to_buf(buf, buf_len, pos, 'N', out_info.print_params_.cs_type_)); + } else if (obj.is_string_or_lob_locator_type() && obj.get_collation_type() == CS_TYPE_BINARY) { + OZ(obj.print_plain_str_literal(buf, buf_len, pos, out_info.print_params_)); } else { OZ(obj.print_plain_str_literal(out_info.tmp_buf_, out_info.tmp_buf_len_, tmp_pos, out_info.print_params_));