Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Following code works on one database but not another
We have a development and production oracle database. The following
code works on the development database but not on the production
database. If I replace the date variable with a hardcoded date, it
works fine. Something in the I_STDT is causing a problem. Is there a
problem with my code is there a possible difference in the databases?
CREATE OR REPLACE PACKAGE PG_TRDAYS AS
TYPE cdcur IS REF CURSOR;
PROCEDURE SP_TRDAYS(TandO OUT cdcur, I_RORG IN VARCHAR2, I_STDT IN
VARCHAR2);
END PG_TRDAYS;
/
CREATE OR REPLACE PACKAGE BODY PG_TRDAYS AS PROCEDURE SP_TRDAYS(TandO OUT cdcur, I_RORG IN VARCHAR2, I_STDT IN VARCHAR2) IS v_hiercd cdcur;
BEGIN OPEN v_hiercd FOR
SELECT
CRSE.CRSE_TTL "Course Title",
CRSE_SESSION.ATTENDEE_NUM_CT "Num. Attend",
CRSE.DAYS_IN_CLASS "Days in Class",
CRSE_SESSION.END_DT "End Date", UPPER(HIER.TTL) "Organization", LOOKUP_STRINGS.TTL "Locations",
END SP_TRDAYS; END PG_TRDAYS; Received on Mon Jan 03 2005 - 14:43:36 CST
![]() |
![]() |