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

Home -> Community -> Mailing Lists -> Oracle-L -> Deterministic Functions: am I missing something?

Deterministic Functions: am I missing something?

From: Khedr, Waleed <Waleed.Khedr_at_FMR.COM>
Date: Thu, 02 Oct 2003 14:54:31 -0800
Message-ID: <F001.005D1D98.20031002145431@fatcity.com>


drop table test_det;
create table test_det (c1 date);
create or replace function f2 (p1 in number, p2 in number) return number deterministic is
pragma autonomous_transaction;
begin
 insert into test_det values (sysdate);
 commit;
return(p1 * p2);
end;
/
 select f2 (1,3) from dual where f2 (1,3) = 3; F2(1,3)



3
 select * from test_det;
C1

02-OCT-03
02-OCT-03
It did not save an execution even in the same sql call! Oracle 9.2.0.2 Solaris 2.8
Regards,

Waleed

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Khedr, Waleed
  INET: Waleed.Khedr_at_FMR.COM

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Oct 02 2003 - 17:54:31 CDT

Original text of this message

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