Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> DBMS_SQL and PRAGMA RESTRICT_REFERENCES
*****Posted for a collegue******
DBMS_SQL and PRAGMA RESTRICT_REFERENCES
Can anyone help???
I wish to use a function in a select statement, the function input parameter is a column in which a SQL query resides as a text string, the output will be a numeric.
I need to use DBMS_SQL to execute the IN parameter as a SQL statement, I also need to use PRAGMA RESTRICT_REFERENCES (WNDS) as the function will be called in a SELECT, however it appears that I can't use both!!!
When I try to compile my package the following is returned
PLS-00452: Subprogram 'XXXXXX_XXXXXX' violates its associated pragma
Even though my SQL Query is a simple SELECT COUNT(*)
Any ideas? Does DBMS_SQL write to the database?
Phillip Reid
Vodafone Ltd.
*****Posted for a collegue******
Received on Fri Jun 12 1998 - 09:48:58 CDT