Link to home
Start Free TrialLog in
Avatar of Glen_D
Glen_D

asked on

ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'PROC_ISREFCUR_ARRAY' ORA-06550: line 1, column 7: PL/SQL: Statement ignored

we have this sp that will return a result set...below.  When my CF developer make sthe call, he is getting the error in the title...any ideas? Thx and this is urgent for us...

CREATE or REPLACE package PACK_ISREFCUR_ARRAY AS      
TYPE refcArray IS REF CURSOR RETURN LU_State%ROWTYPE ;  
PROCEDURE PROC_ISREFCUR_ARRAY (outLU_State OUT refcArray) ;
END ;
/

CREATE OR REPLACE package body PACK_ISREFCUR_ARRAY AS  
PROCEDURE PROC_ISREFCUR_ARRAY (outLU_State OUT refcArray) IS    
BEGIN      
OPEN outLU_State FOR
SELECT StateID, State_Desc, State_AB
FROM LU_State
ORDER BY State_Desc;    
END ;
END ;
/
Avatar of SidFishes
SidFishes
Flag of Canada image

can you post the cf code... if the proc runs for you but not the cf dev, then it's a cf code issue most likely
Avatar of Glen_D
Glen_D

ASKER

Thx...here's the CF code:

<cfstoredproc datasource="ericao" procedure="PACK_ISREFCUR_ARRAY.proc_isrefcur_array">
  <cfprocparam type="out" cfsqltype="cf_sql_refcursor" variable="states">
</cfstoredproc>
<cfdump var="#states#">
ASKER CERTIFIED SOLUTION
Avatar of MikeOM_DBA
MikeOM_DBA
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Glen_D

ASKER

yes, I was thinking that as well...


maybe just a select * from LU_States?

What do you think?

Thx
Avatar of Glen_D

ASKER

OK..tried that and received the same error


Yes, try select *, if not, just remove the "RETURNING' from the type declaration.
 
Avatar of Glen_D

ASKER

can you show me what you mean?  thx
Avatar of Glen_D

ASKER

Turns out my CF Deeveloper wasn't pointing to the right server...thx
This:
 

CREATE OR REPLACE PACKAGE pack_isrefcur_array
AS
   TYPE refcarray IS REF CURSOR;
   PROCEDURE proc_isrefcur_array (outlu_state OUT refcarray);
END;
/

Open in new window