cassiusdrow
Member²
In PL/SQL Developer version 7.0.3.1123, a cursor in the package body will get a "hint: cursor .. is declared but never used in .." warning when the cursor is also defined in the package specification. It should not give this warning since it may be used outside the package.
Example:
Example:
Code:
CREATE OR REPLACE PACKAGE test
IS
TYPE t_user IS RECORD (username VARCHAR(30));
CURSOR csr_users RETURN t_user;
END ;
/
CREATE OR REPLACE PACKAGE BODY test
IS
CURSOR csr_users RETURN t_user IS SELECT t.username FROM sys.all_users t;
END test;
/
Compilation errors for PACKAGE HCRS.TEST
Error: Hint: Cursor 'csr_users' is declared but never used in 'test'
Line: 3
Text: CURSOR csr_users RETURN t_user IS SELECT t.username FROM sys.all_users t;