views:

56

answers:

2

I'd like to call a PL/SQL stored procedure that has an OUT parameter specified, but I don't care about the return value. I just care that the procedure executed successfully, i.e. no exceptions thrown.

Do I have to define a dummy variable in my calling PL/SQL block to receive the out parameter even though I don't want it? It clutters up my calling code.

+6  A: 

Yes, you'll have to define a dummy variable.

Or write a wrapper proc that ignores the variable you don't care about?

cagcowboy
@cagcowboy I'll hold off on writing the wrapper unless I have this issue repeatedly for the same function.
RenderIn
A: 

Use sys_cursor to retrieve all the columns inside the procedure..

jitu
Sorry but this in no way addresses the question. A harder man would have downvoted it.
APC