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 -> DETERMINISTIC Function in Pkg

DETERMINISTIC Function in Pkg

From: userjohn <userjohn_at_mailinator.com>
Date: Wed, 3 Oct 2007 13:01:19 -0400
Message-ID: <13g7ipn104dlr11@corp.supernews.com>


10gR2 EE (10.2.0.3.0) /Solaris

According to the doc re. DETERMINISTIC Clause http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5009.htm#sthref6486

>> You cannot declare DETERMINISTIC a private subprogram (declared inside
>> another subprogram or inside a package body).

I have this in the BODY:

FUNCTION with_det_test(i IN NUMBER) RETURN NUMBER DETERMINISTIC
IS
BEGIN
       dbms_output.put_line(i);
RETURN i;
END; And in SPEC:

FUNCTION with_det_test(i IN NUMBER) RETURN NUMBER DETERMINISTIC ;

Why am I not getting compile error ?
so do I have a valid determ. function ?

thanks Received on Wed Oct 03 2007 - 12:01:19 CDT

Original text of this message

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