Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Fixing error ORA-06571
Using Oracle 7.3.3, I have created the following package and function,
and when I say
select pk_rep_terr.current_alignment from dual
I get an error message ---
ORA-06571: Function CURRENT_ALIGNMENT does not guarantee not to update
database.
The documentation says
*Cause: There are two possible causes for this message:
Any suggestions?
Here is what I have got:
CREATE OR REPLACE PACKAGE pk_rep_terr
IS
FUNCTION current_alignment
RETURN number;
END pk_rep_terr;
/
CREATE OR REPLACE PACKAGE BODY pk_rep_terr
IS
FUNCTION current_alignment
RETURN number
IS
cur_al NUMBER;
BEGIN
/* Determine the current alignment number */ SELECT MAX(rv_low_value) INTO cur_al FROM hs_ref_codes WHERE rv_domain = 'ALIGNMENT'; RETURN cur_al;
![]() |
![]() |