I want to test my pipeline function without creating a package. The following example is simplified:
DECLARE FUNCTION testDC RETURN NCOL PIPELINED IS BEGIN PIPE ROW(5); END; BEGIN FOR cur IN (select * from table (testDC())) LOOP dbms_output.put_line('--> '); END LOOP; END;
But I get this error:
ORA-06550: row 7, column 7: PLS-00231: TESTDC function cannot be used in SQL
ORA-06550: row 7, column 7: PL / SQL: ORA-00904 :: invalid identifier
ORA-06550: row 7, column 7: PL / SQL: SQL expression ignored
What is better to check these functions?
source share