The DOA Package Wizard offers a nice support of server-side cursor references :
Lets say that you have a PL/SQL package procedure like :
procedure select_something(p_id in NUMBER, crs in out t_ref_cursor) is
begin
open crs for
select ... from ... where id = p_id;
end;
it wil be translated in the Delphi unit in :
procedure select_something(p_id : Double; var crs: TOracleQuery);
After calling "select_something", you simply have to execute the query (crs here) and loop through its data.
Perfect in a 2 tiers environment.
Now how to translate it in MIDAS as TDatasetProvider only supports TDataset descendants what TOracleQuery is not ?
The solution would be simple if one of these questions get a positive answer :
1
Lets say that you have a PL/SQL package procedure like :
procedure select_something(p_id in NUMBER, crs in out t_ref_cursor) is
begin
open crs for
select ... from ... where id = p_id;
end;
it wil be translated in the Delphi unit in :
procedure select_something(p_id : Double; var crs: TOracleQuery);
After calling "select_something", you simply have to execute the query (crs here) and loop through its data.
Perfect in a 2 tiers environment.
Now how to translate it in MIDAS as TDatasetProvider only supports TDataset descendants what TOracleQuery is not ?
The solution would be simple if one of these questions get a positive answer :
1