| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.oracle -> How to call a private package level function
Hello
I am trying to build an Oracle PL/SQL Package. Some functions should only be visible from the package, while other functions need to be called from outside.
I tried the following:
create or replace package test
is
FUNCTION MYPUBLICFUNC (parm in integer) return INTEGER;
end;
/
create or replace package body test
AS
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;
This results in an Error Message:
PLS-00013: MYPRIVATEFUNC ist für diesen Geltungsbereich nicht
definiert.
What am I doing wrong here ??
Kind Regards
Mat Hess
Please reply to the newsgroup Received on Fri Aug 13 2004 - 09:35:41 CDT
![]() |
![]() |