Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Pipelined table functions can be used inside a package?
Hi, I tried to use pipelined table functions inside a test package
(the package code is at the end of the messagge).
The package is created without errors and calling the table functions
from a SQL statement like:
SELECT * FROM TABLE(test_pkg.get_my_data2(1,'Numero: '))
everything works fine.
But if I try to recompile the package with: ALTER PACKAGE test_pkg COMPILE PACKAGE the session hangs up and I need to kill the session.
Why this happens? There are some mistakes in the code?
P.S. I noticed that the documentation of Oracle 9.2 describes the
PIPELINED Clause at page 13-54 of the 'SQL Reference' for standalone
funcions but not for functions inside packages ('PL/SQL User's Guide
and Reference' page 13-93).
But if pipelined table functions are not supported inside packages why
my test_pkg works fine but ALTER PACKAGE not?
Thanks.
Here is the package:
CREATE OR REPLACE PACKAGE test_pkg IS
TYPE my_data_r_t IS RECORD
(
field1 NUMBER
, field2 VARCHAR2(50)
END test_pkg;
/
CREATE OR REPLACE PACKAGE BODY test_pkg AS
my_data_r get_my_data_cr%ROWTYPE;
BEGIN
my_data_r get_my_data_cr%ROWTYPE;
BEGIN
![]() |
![]() |