[CP] [CP] [CP] fix some bugs

This commit is contained in:
wjhh2008
2023-07-11 13:42:28 +00:00
committed by ob-robot
parent 18c3958dbe
commit a73393f0e7
4 changed files with 24 additions and 14 deletions

View File

@ -244,7 +244,7 @@ int ObExprToOutfileRow::print_field(char *buf, const int64_t buf_len, int64_t &p
int ret = OB_SUCCESS;
int64_t tmp_pos = 0;
const bool need_enclose = 0 != out_info.wchar_enclose_ &&
(!out_info.is_optional_ || obj.is_string_type());
(!out_info.is_optional_ || obj.is_string_type()) && !obj.is_null();
if (need_enclose) {
OZ(out_info.enclose_.print_plain_str_literal(buf, buf_len, pos, out_info.print_params_));
}