Initialize Ref Cursor to Avoid ORA-01001: invalid cursor
Hi,
I'm writing a stored procedure that will return a REF CURSOR. However, there are times when the cursor will not be opened if certain conditions are not met, so I'm wondering if there's a way to initialize the REF CURSOR so that the caller doesn't receive the "ORA-01001: invalid cursor" error when trying to work with the cursor if it has not been opened.
Any help is greatly appreciated...
Thanks,
Christine