Skip to content

Commit

Permalink
Use the built-in type SYS_REFCURSOR instead of creating a new one.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-tuininga committed May 30, 2018
1 parent c31eef5 commit 85a0ad3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/sql/SetupTest.sql
Expand Up @@ -673,15 +673,13 @@ end;

create or replace package &main_user..pkg_TestRefCursors as

type udt_RefCursor is ref cursor;

procedure TestOutCursor (
a_MaxIntValue number,
a_Cursor out udt_RefCursor
a_Cursor out sys_refcursor
);

function TestInCursor (
a_Cursor udt_RefCursor
a_Cursor sys_refcursor
) return varchar2;

end;
Expand All @@ -691,7 +689,7 @@ create or replace package body &main_user..pkg_TestRefCursors as

procedure TestOutCursor (
a_MaxIntValue number,
a_Cursor out udt_RefCursor
a_Cursor out sys_refcursor
) is
begin
open a_Cursor for
Expand All @@ -704,7 +702,7 @@ create or replace package body &main_user..pkg_TestRefCursors as
end;

function TestInCursor (
a_Cursor udt_RefCursor
a_Cursor sys_refcursor
) return varchar2 is
t_String varchar2(100);
begin
Expand Down

0 comments on commit 85a0ad3

Please sign in to comment.