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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).