From ktoepke@cms.cendant.com Fri, 16 Mar 2001 13:48:02 -0800 From: "Toepke, Kevin M" Date: Fri, 16 Mar 2001 13:48:02 -0800 Subject: RE: For You Slick Developers out there..... Message-ID: MIME-Version: 1.0 Content-Type: text/plain Oracle 8.0 and before requires that a function have the following in the header in order for it to work in a select statement: PRAGMA RESTRICT_REFERENCES(...) Oracle, in its infinite wisdom, didn't put the pragma in most of its internal functions... Oracle 8i got rid of this PRAGMA. You still can't directly update the database in a select statement. Kevin -----Original Message----- Sent: Friday, March 16, 2001 2:51 PM To: Multiple recipients of list ORACLE-L I get a version-specific glitch ( works in 816, fails in 805 ) for a call to the DBMS_UTILITY.GET_TIME built-in: ###################### SQL> select dbms_utility.get_time from dual; select dbms_utility.get_time from dual * ERROR at line 1: ORA-06571: Function GET_TIME does not guarantee not to update database ###################### Any ideas why 80520 doesn't like this? TIA, - Ross p.s. a simple assignment, like, for example time := DBMS_UTILITY.GET_TIME; fails as well. p.p.s I know how to use V$TIMER, so i am looking for a "why this doesn't work" not a "How to fix it by using V$TIMER" answer. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Toepke, Kevin M INET: ktoepke@cms.cendant.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@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).