PL/SQL Package Functions in SELECT statements...
Date: 1995/09/06
Message-ID: <1995Sep6.075351.22380_at_tpg.tpg.oz.au>#1/1
select funcs.funcX(columnX) from dual;
I get the following response from oracle:
ORA-06571: Function FUNCX does not guarantee not to update database
06571, 00000, "Function %s does not guarantee not to update database"
// *Cause: A plsql function that does not have a pragma asserting that it
// does not write any database state is referenced in a sql
statement.
// Such functions cannot be used in sql statements.
// *Action: Recreate the function and/or the functions it calls with the
pragma
Having found this I thought that I was finally onto the fix, but when I looked
in the PL/SQL Users Guide and Reference there was little information on the
use
of "pragma". So I'm now left with the question what pragma! Is
EXCEPTION_INIT
with some magic arguments the go or should it be FIPSFLAG or some other
obscure
pragma.
Thanks in advance
Peter Derrick. Received on Wed Sep 06 1995 - 00:00:00 CEST