Skip to content

Commit 85a0ad3

Browse files
Use the built-in type SYS_REFCURSOR instead of creating a new one.
1 parent c31eef5 commit 85a0ad3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/sql/SetupTest.sql

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -673,15 +673,13 @@ end;
673673

674674
create or replace package &main_user..pkg_TestRefCursors as
675675

676-
type udt_RefCursor is ref cursor;
677-
678676
procedure TestOutCursor (
679677
a_MaxIntValue number,
680-
a_Cursor out udt_RefCursor
678+
a_Cursor out sys_refcursor
681679
);
682680

683681
function TestInCursor (
684-
a_Cursor udt_RefCursor
682+
a_Cursor sys_refcursor
685683
) return varchar2;
686684

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

692690
procedure TestOutCursor (
693691
a_MaxIntValue number,
694-
a_Cursor out udt_RefCursor
692+
a_Cursor out sys_refcursor
695693
) is
696694
begin
697695
open a_Cursor for
@@ -704,7 +702,7 @@ create or replace package body &main_user..pkg_TestRefCursors as
704702
end;
705703

706704
function TestInCursor (
707-
a_Cursor udt_RefCursor
705+
a_Cursor sys_refcursor
708706
) return varchar2 is
709707
t_String varchar2(100);
710708
begin

0 commit comments

Comments
 (0)