diff --git a/src/observer/dbms_job/ob_dbms_job_utils.cpp b/src/observer/dbms_job/ob_dbms_job_utils.cpp index a1743d0d1060118f59382f52e74c65471f068143..62b3bb82f2a8e29b604cd7be55e16c9f85198caf 100644 --- a/src/observer/dbms_job/ob_dbms_job_utils.cpp +++ b/src/observer/dbms_job/ob_dbms_job_utils.cpp @@ -363,7 +363,9 @@ int ObDBMSJobUtils::get_dbms_job_infos_in_tenant( } else if (OB_NOT_NULL(result.get_result())) { do { if (OB_FAIL(result.get_result()->next())) { - LOG_WARN("failed to get result", K(ret)); + if (ret != OB_ITER_END) { + LOG_WARN("failed to get result from result", K(ret)); + } } else { ObDBMSJobInfo job_info; OZ (extract_info(*(result.get_result()), allocator, job_info)); 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 af385d5c97d687763e793190d41d852d693ad941..0a3a4dc486c7a5fd28b407472c9e6f91b75e837c 100644 --- a/src/sql/engine/expr/ob_expr_to_outfile_row.cpp +++ b/src/sql/engine/expr/ob_expr_to_outfile_row.cpp @@ -262,9 +262,9 @@ int ObExprToOutfileRow::print_field(char *buf, const int64_t buf_len, int64_t &p OZ(copy_string_to_buf(buf, buf_len, pos, code_point)); } else { OZ(copy_string_to_buf(buf, buf_len, pos, code_point)); - } - return ret; - }; + } + return ret; + }; ObString tmp_str(out_info.tmp_buf_len_, tmp_pos, out_info.tmp_buf_); OZ(ObCharsetUtils::foreach_char(tmp_str, out_info.print_params_.cs_type_, escape_func)); }