Sorry, false alarm, the mappings did not work did not work, so I could not generate any code at all ( 2 days on this already, please).
Here is my sql server SP, having 1 input arg and return 1 resultset:
CREATE PROCEDURE dbo.GetChildrenInHierarchy1 (@parentId integer)
AS
DECLARE @path VARCHAR(1024)
DECLARE @id int
DECLARE @parent_path VARCHAR(1024)
DECLARE @level int
with pathlist as
(
select parent.Path, parent.Id, parent.ParentPath, 1 as level
from Entity as parent
where parent.Id = @parentId
union all
select child.Path, child.Id, child.ParentPath, el.level + 1
from Entity as child
inner join pathlist as el
on child.ParentPath = el.Path
where child.ParentPath is not null
)
select * from pathlist;
go
Here is my Oracle SP, the parameter list has 1 input arg and returning 1 resultset:
create or replace procedure "Test"."GetChildrenInHierarchy1"(parentId in integer, p_cursor out SYS_REFCURSOR)
as
begin
open p_cursor for
SELECT "Path",
"Id",
"ParentPath",
level
FROM "EntityHeader"
START WITH "ParentPath" IS NULL
CONNECT BY PRIOR "Path" = "ParentPath";
end;
/
The problem is that when I created the SP call by using the Sql Server SP (has 1 input arg) then trying to map it to the Oracle target (has 2 args in the argument list) LLBL failed to validate, complaining I only mapped 1 out of 2 required args. Please see attachment.
The reverse, creating the SP call by using the Oracle SP also failed.
Thanks
Attachments
Filename |
File size |
Added on |
Approval |
error.docx
|
226,499 |
05-Sep-2013 05:21.19 |
Approved |