[to #51691139] fix mysqltest

This commit is contained in:
obdev
2023-08-25 09:48:04 +00:00
committed by ob-robot
parent 9dba6a1098
commit 410ae92cfe
3 changed files with 7 additions and 3 deletions

View File

@ -5486,6 +5486,11 @@ int ObSPIService::spi_set_collection(int64_t tenant_id,
CK (type->is_collection_type());
CK (OB_NOT_NULL(collection_type = static_cast<const ObCollectionType*>(type)));
OZ (collection_type->get_element_type().newx(*coll.get_allocator(), ns, ptr));
if (OB_SUCC(ret) && collection_type->get_element_type().is_collection_type()) {
ObPLCollection *collection = NULL;
CK (OB_NOT_NULL(collection = reinterpret_cast<ObPLCollection*>(ptr)));
OX (collection->set_count(0));
}
OZ (collection_type->get_element_type().get_size(*ns, PL_TYPE_INIT_SIZE, init_size));
OX (row->set_extend(ptr, collection_type->get_element_type().get_type(), init_size));
}