ORA-06571 and PLS-00452
From: Thomas Schmitt <tomschmitt_at_mediaone.net>
Date: 1999/03/04
Message-ID: <rdID2.17138$jd2.41665254_at_rmnws01.ce.mediaone.net>#1/1
Date: 1999/03/04
Message-ID: <rdID2.17138$jd2.41665254_at_rmnws01.ce.mediaone.net>#1/1
I have a package with two functions, one of which uses two cursors – neither of which updates any tables. When I execute it I get a error message -- ORA-06571 Function MyFunc does not guarantee not to update database. I added PRAGMA RESTRICT_REFERENCES( MyFunc, WNDS ) to the package specification. Then when I compile the package body I get a compile error -- PLS-00452: Subprogram 'MyFunc' violates its associated pragma.