Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to check if a Function exists in a package

Re: How to check if a Function exists in a package

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 26 Jan 2007 09:20:57 -0800
Message-ID: <1169832055.147805@bubbleator.drizzle.com>


Stefan Wetter wrote:
> Hello!
>
> I would like to have somthing like that:
>
> Package p_customer
> function a
> function c
> end
>
> Package p_order
> function a
> if existfunction(p_customer.a) then
> return p_customer.a();
> else
> standardcode;
> end if;
> end p_order;
>
> Is that possible to have a function existfunction() to do it like
> described above?
>
> Thank you!
> Stefan

SELECT DISTINCT object_name
FROM all_arguments
WHERE package_name = 'UTL_FILE'
AND position = 0;

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Fri Jan 26 2007 - 11:20:57 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US