fix illegal access free memory
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
@ -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_));
|
||||
|
||||
Reference in New Issue
Block a user