Bug: Invalid Hint: Variable ... is declared but never used in

Roeland

Member³
Consider the following code:

Code:
create or replace package pck_Test is

  type t_Test_Cursor is ref cursor return dual%rowtype;

  procedure MyMethod;

end pck_Test;

create or replace package body pck_Test is

  procedure MyMethod is
    c_Cursor t_Test_Cursor;
    r_Row    c_Cursor%rowtype;
  begin
    r_Row.Dummy := 0;
    Dbms_Output.put_line( r_row.Dummy);
  end;

end pck_Test;

When I compile this in PL/SQL dev I get

Invalid Hint: Variable 'c_Cursor' is declared but never used in 'MyMethod'

But of course I have used it! I declared the row with the cursor.

Thanks,

Roeland
 
Back
Top