TOraObject, TOraArray troubles.

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
prosoft

TOraObject, TOraArray troubles.

Post by prosoft » Fri 25 Feb 2005 11:12

I'm used that object to access oracle object

Var
T: TOraType;
A: TOraArray;
I: Integer;
begin
T := TOraType.Create(oraclesession.ocisvcctx, 'T_QUERY_FIELDS');
A := TOraArray.Create(T);
for I :=0 to 100 do
A.ItemAsObject.AttrAsString['NAME'] := 'Name'+IntToStr(I); // < Access Violation at Address xxxxx on orageneric9.dll
end;

/*

REATE OR REPLACE
type T_Query_Field as object (
F_Type varchar2(30),
Name varchar2(255),
Disp_Label varchar2(255),
Disp_Width number(3),
Disp_Format varchar2(50),
Dsrc varchar2(4000)
) not final

CREATE OR REPLACE
type T_Query_Fields as VArray(255) of T_Query_Field

*/

What wrong? :(

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Tue 01 Mar 2005 15:47

ODAC doesn't support not final Oracle objects.
We are working on this way but it will not be at the nearest time.

Post Reply