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

Home -> Community -> Usenet -> comp.databases.oracle -> Re: How to call a private package level function

Re: How to call a private package level function

From: JT <info_at_toronto.demon.co.uk>
Date: 16 Aug 2004 04:18:48 -0700
Message-ID: <e307a406.0408160318.47d28080@posting.google.com>


Not quite true. You can use a forward declaration in order to keep the sub-programs in the order you require:

create or replace package test
is

        FUNCTION MYPUBLICFUNC (parm in integer) return INTEGER; end;
/

create or replace package body test
AS

   FUNCTION myprivatefunc(parm IN INTEGER) RETURN INTEGER;

	FUNCTION MYPUBLICFUNC (parm in integer)
	return integer
	IS
	BEGIN
		RETURN test.MYPRIVATEFUNC(parm);
	END;

              FUNCTION MYPRIVATEFUNC (parm in integer)
	return integer
	IS
	BEGIN
		RETURN 3*parm;
	END;



END;
/
Received on Mon Aug 16 2004 - 06:18:48 CDT

Original text of this message

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