次の方法で実装しようとした pl/sql で、ネストされたパイプライン関数を作成する必要があります。
create package body XYZ AS
function main_xyz return data_type_1 pipelined is
begin
--code
pipe row(sub_func);
end;
function sub_func return data_type_1 pipelined is
begin
--code
pipe row(sub_func_1);
end;
function sub_func_1 return data_type_1 pipelined is
begin
--code
pipe row(main_abc);
end;
end;
create package body abc AS
function main_abc return data_type_2 pipelined is
var data_type_2;
begin
--code
return var;
end;
end;
ただし、次のエラーが表示されます
[エラー] PLS-00653 : PLS-00653: 集計/テーブル関数は PL/SQL スコープでは許可されていません
どこが間違っていますか?それは構文ですか、それとも論理ですか?