to issue<2024112900105382231>:fix core when free rawtype obobj memory

This commit is contained in:
hanr881 2024-12-03 07:15:08 +00:00 committed by ob-robot
parent b324d19e3f
commit 4928de3364

View File

@ -1577,13 +1577,17 @@ void* ObObj::get_deep_copy_obj_ptr()
ptr = (void *)v_.string_;
}
} else if (ob_is_raw(this->get_type())) {
ptr = (void *)v_.string_;
if (val_len_ != 0) {
ptr = (void *)v_.string_;
}
} else if (ob_is_number_tc(this->get_type())
&& 0 != nmb_desc_.len_
&& NULL != v_.nmb_digits_) {
ptr = (void *)v_.nmb_digits_;
} else if (ob_is_rowid_tc(this->get_type())) {
ptr = (void *)v_.string_;
if (val_len_ != 0) {
ptr = (void *)v_.string_;
}
} else if (ob_is_lob_locator(this->get_type())) {
ptr = (void *)v_.lob_locator_;
} else if (ob_is_decimal_int_tc(this->get_type()) && 0 != val_len_ && NULL != v_.decimal_int_) {