Answered
execute oracle stored procedure in CF8
I am executing a stored procedure like this.
<cfstoredproc procedure="GetAction" datasource="test_DSN">
<cfprocparam cfsqltype="CF_SQL_INTEGER" dbvarname="actionId" type="in" value="1">
<cfprocresult name="actions" resultset="1" >
</cfstoredproc>
and my stored procedure in oracle is,
create or replace function GetAction(actionId IN ACTION.ID%TYPE)
RETURN ACTION%ROWTYPE
IS
actions
ACTION%ROWTYPE;
begin
select *
INTO actions
FROM ACTION WHERE ID = actionId;
RETURN actions;
end GetAction;
then I get the error message like,
ORA-01008: not all variables bound
Please help me on this.
Thanx
<cfstoredproc procedure="GetAction" datasource="test_DSN">
<cfprocparam cfsqltype="CF_SQL_INTEGER" dbvarname="actionId" type="in" value="1">
<cfprocresult name="actions" resultset="1" >
</cfstoredproc>
and my stored procedure in oracle is,
create or replace function GetAction(actionId IN ACTION.ID%TYPE)
RETURN ACTION%ROWTYPE
IS
actions
ACTION%ROWTYPE;
begin
select *
INTO actions
FROM ACTION WHERE ID = actionId;
RETURN actions;
end GetAction;
then I get the error message like,
ORA-01008: not all variables bound
Please help me on this.
Thanx
