A puzzling problem with Collections. I can quite happily create a new TOracleObject then copy an existing one using the Assign method. If I do the same for a collection type, it seems that the element data does not get copied. ie:
Obj1 := Query1.ObjField(0);
Obj2 := TOracleObject.Create(Session,'my_type','');
Obj2.Assign(Obj1);
// Obj1.ElementCount returns 3
// Obj2.ElementCount returns 2
Is this an Oracle problem (tested against 8.1.6) or is it a DOA problem? There's nothing obvious in the OCI documentation to indicate that anything more than OCIObjectCopy is required ....
Thanks,
Paul
Obj1 := Query1.ObjField(0);
Obj2 := TOracleObject.Create(Session,'my_type','');
Obj2.Assign(Obj1);
// Obj1.ElementCount returns 3
// Obj2.ElementCount returns 2
Is this an Oracle problem (tested against 8.1.6) or is it a DOA problem? There's nothing obvious in the OCI documentation to indicate that anything more than OCIObjectCopy is required ....
Thanks,
Paul