In an Oracle package I have defined a type
type setTable is table of my_sets.pkey%type;
in the package declaration (the non-body part). The pkey
column referenced is a number(38)
. Then in a function in the package body I have
...
with d as (select column_value from table(sets)),
...
where sets
is a parameter to the function of type settable
. This line fails to compile with the error 'ORA-22905: cannot access rows from a non-nested table item'. What can I do to resolve this?