TOraStoredProc without procname in odac 9.3.8
Posted: Sun 25 May 2014 09:09
hi,
i found a problem when i use a TOraStoredProc, without procname (odac 9.3.
, here is an example:
var a,b :string;
begin
try
store:=TOraStoredProc.Create(nil);
store.Session:=session;
if(a='query')then // like a simple query
store.SQL.Text:='select * from student' //like select query
else // like a stored procedure
begin
store.StoredProcName:=b;// b like a procname
store.FetchAll:=True;
store.PrepareSQL;
store.Params.Items[0].DataType:=ftCursor;
end;
if(a='query')then
store.Open
else
Store.execute;
except on E: Exception do showmessage ('error');
end;
the bug was: error storedprocname must be defined
this example works fine when i execute it with odac v9.0.1
thanks
i found a problem when i use a TOraStoredProc, without procname (odac 9.3.
var a,b :string;
begin
try
store:=TOraStoredProc.Create(nil);
store.Session:=session;
if(a='query')then // like a simple query
store.SQL.Text:='select * from student' //like select query
else // like a stored procedure
begin
store.StoredProcName:=b;// b like a procname
store.FetchAll:=True;
store.PrepareSQL;
store.Params.Items[0].DataType:=ftCursor;
end;
if(a='query')then
store.Open
else
Store.execute;
except on E: Exception do showmessage ('error');
end;
the bug was: error storedprocname must be defined
this example works fine when i execute it with odac v9.0.1
thanks