I'm debugging a procedure which ... returns certain values. The procedure seems to use DBMS_SQL.DESCRIBE_COLUMNS2
which was, till now unknown to me.
One of the out variables of the DBMS_SQL.DESCRIBE_COLUMNS2
procedure is a collection, and I want to examine that value is being returned into that - how can I observe/watch/examine this value ?
I use Allround Automations' PL/SQL Developer, but also have Oracle's SQL Developer as the tools with which I can use.
Tried iterating through the collection like so;
For Val In 1..M_Rec_Tab.Count Loop
Dbms_Output.Put_Line( M_Rec_Tab(Val) );
end loop;
But that throws a PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
.
M_Rec_Tab is declared as Dbms_Sql.Desc_Tab2
type.
Dbms_Sql.Desc_Tab2
declared as desc_tab2 is table of desc_rec2 index by binary_integer
I'm on Oracle 10g R2 ( 10.2.0.1.0 )