From ced202f10b143f0c5a4c8184d3a253d9ebea2cdf Mon Sep 17 00:00:00 2001 From: lf0 Date: Mon, 21 Mar 2022 16:22:39 +0800 Subject: [PATCH] Fix core at ObPlanCacheValue::reset --- deps/oblib/src/common/object/ob_object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/oblib/src/common/object/ob_object.cpp b/deps/oblib/src/common/object/ob_object.cpp index c4f0a12a74..4794b04d3f 100644 --- a/deps/oblib/src/common/object/ob_object.cpp +++ b/deps/oblib/src/common/object/ob_object.cpp @@ -582,7 +582,7 @@ void* ObObj::get_deep_copy_obj_ptr() } } else if (ob_is_raw(this->get_type())) { ptr = (void *)v_.string_; - } else if (ob_is_number_tc(this->get_type())) { + } 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_;