title: Getting PLS-00324 error when compile a Package Body
body: <p>when I compile this code below, I get PL-00324 error. This error says the variable V_CD_ESTADO couldn't recieve the return from the cursor C_VERIFICA because it's not a cursor. Weird, no? I research a lot, but a couldn't find something  that helps me... So, i'll be very grateful if anyone helps me!</p>
  
  <p>PLS-00324 cursor attribute may not be applied to non-cursor 'string'</p>
  
  <pre><code>CREATE OR REPLACE PACKAGE BODY PCK_TB_ESTADO
  IS
    FUNCTION FNC_VALIDA_ESTADO
    (P_CD_ESTADO IN TB_FUNCIONARIO.CD_ESTADO%TYPE)
    RETURN BOOLEAN
    IS
      CURSOR C_VERIFICA
      IS
        SELECT CD_ESTADO
        FROM TB_FUNCIONARIO
        WHERE CD_ESTADO = P_CD_ESTADO;
      V_CD_ESTADO TB_FUNCIONARIO.CD_ESTADO%TYPE;
    BEGIN
      OPEN C_VERIFICA;
        FETCH C_VERIFICA INTO V_CD_ESTADO;
      IF V_CD_ESTADO%NOTFOUND THEN
        RETURN TRUE;
      ELSE
        RETURN FALSE;
      END IF;
      CLOSE C_VERIFICA;
    END;
  END;
  </code></pre>