Skip to content
This repository was archived by the owner on Feb 18, 2021. It is now read-only.
This repository was archived by the owner on Feb 18, 2021. It is now read-only.

Does not support opening cursor with paramters #15

@mmh222

Description

@mmh222

Following code block errors out

    CREATE OR REPLACE PACKAGE BODY abc
    IS
       CURSOR cur_rows (num_rows NUMBER)
       IS
          SELECT tname
        FROM tab
           WHERE ROWNUM < num_rows;

       PROCEDURE x
       IS
          y   VARCHAR2 (100);
       BEGIN
          OPEN cur_rows (5);

          LOOP
         FETCH cur_rows
          INTO y;

         EXIT WHEN cur_rows%NOTFOUND;
         DBMS_OUTPUT.put_line (y);
          END LOOP;
       END x;
    END abc;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions