oracle - Optional output cursor as parameter -


i'm trying cater 2 applications.

one calls procedure 2 cursors, other 1.

both out sys_refcursor.

because of difference in definition of procedure, change 1 application break other.

i wondering if possible have same procedure both out sys_refcursor second parameter optional. done in other parts of project defining default value.

i have tried googling , defining default values no avail. doesnt seem common issue.

is there way have definition optional out sys_refcursor ?

here code:

procedure proc_getq (qlist out sys_refcursor, qstack out sys_refcursor); 

i qstack optional.

thanks, jfit

what method overloading?

procedure proc_getq (qlist out sys_refcursor, qstack out sys_refcursor); procedure proc_getq (qlist out sys_refcursor); 

create procedure same name, similar logic (better call 2-parameter version inside , pass 1 outside), 1 out parameter.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -