[CP] [CP] to issue<53759597>:fix assoc array memory shrink cause 4016 issue

This commit is contained in:
hanr881
2023-12-18 23:12:55 +00:00
committed by ob-robot
parent 21d4366ea5
commit f51fa99916

View File

@ -3570,10 +3570,20 @@ int ObPLCollection::deep_copy(ObPLCollection *src, ObIAllocator *allocator, bool
} else if (ignore_del_element && !is_associative_array()) {
set_first(1);
set_last(k);
#ifdef OB_BUILD_ORACLE_PL
} else if (PL_ASSOCIATIVE_ARRAY_TYPE == src->get_type()) {
set_first(static_cast<ObPLAssocArray *>(src)->get_first());
set_last(static_cast<ObPLAssocArray *>(src)->get_last());
#endif
} else {
set_first(src->get_first());
set_last(src->get_last());
}
#ifdef OB_BUILD_ORACLE_PL
} else if (PL_ASSOCIATIVE_ARRAY_TYPE == src->get_type()) {
set_first(static_cast<ObPLAssocArray *>(src)->get_first());
set_last(static_cast<ObPLAssocArray *>(src)->get_last());
#endif
} else {
set_first(src->get_first());
set_last(src->get_last());