Fix core of table scan iter
This commit is contained in:
@ -250,9 +250,9 @@ int ObExprToOutfileRow::print_field(char *buf, const int64_t buf_len, int64_t &p
|
||||
auto escape_func =
|
||||
[buf, buf_len, &pos, need_enclose, &out_info] (ObString &code_point, int32_t wchar) -> int {
|
||||
int ret = OB_SUCCESS;
|
||||
if (wchar == '\0') {
|
||||
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, '0', out_info.print_params_.cs_type_));
|
||||
if (wchar == '\0') {
|
||||
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, '0', out_info.print_params_.cs_type_));
|
||||
} else if (wchar == out_info.wchar_enclose_ || wchar == out_info.wchar_escape_) {
|
||||
OZ(out_info.escape_.print_plain_str_literal(buf, buf_len, pos, out_info.print_params_));
|
||||
OZ(copy_string_to_buf(buf, buf_len, pos, code_point));
|
||||
|
||||
Reference in New Issue
Block a user