Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sys_refcursor pre 9i

Status
Not open for further replies.

alexhu

MIS
Sep 25, 2001
1,288
GB
I have code to create a procedure

Code:
create or replace procedure SP_RSV
( warehouse 	IN  STSTYL00.ST00_COM_DIV%TYPE,
  startpoint	IN  PXSTYL00.PX00_DCR%TYPE,
  endpoint	IN  PXSTYL00.PX00_DCR%TYPE,
o_result_set	OUT sys_refcursor) IS
BEGIN
    OPEN o_result_set FOR............

however sys_refcursor is for 9i and I need to use this on 8.0.5

Anyone any ideas how to go backwards ?

Alex
 
found the solution

Code:
create or replace package types
as
 type cursortype is ref cursor;
end;


create or replace procedure SP_RSV
( warehouse 	IN  STSTYL00.ST00_COM_DIV%TYPE,
  startpoint	IN  PXSTYL00.PX00_DCR%TYPE,
  endpoint	IN  PXSTYL00.PX00_DCR%TYPE,
o_result_set	OUT types.cursortype) IS
BEGIN
    OPEN o_result_set FOR.............

Alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top