I want to use function tq84_select_star_from_table from answer to this question EXECUTE IMMEDIATE in plsql
I created tq84_varchar2_tab,tq84_varchar2_tab_tab types and when I use function like in the answer to question, it works, but when I try to debug function I get this errors and debugging doesn't start.
ORA-06550: Row 13, column 16:
PLS-00382: expression is of wrong type
ORA-06550: Row 13, column 3:
PL/SQL: Statement ignored
When I change type of resultSet and return type of function to VARCHAR2, then debugging starts successfully.
I'm using oracle sql developer. I want to know what is wrong.

