Error with TOraStoredProc and function
Posted: Mon 16 Oct 2006 08:22
Hi,
I am using ODAC 5.80.0.35 with Delphi 2006 and Oracle 9i.
Example code:
Proc := TOraStoredProc.Create(Self);
Proc.Session := OraSession;
Proc.StoredProcName := 'Test_Procedure';
Proc.Params.CreateParam(ftInteger, 'iUserKey', ptInput).Value := 1;
Proc.ExecProc;
The above code works with an Oracle procedure, but returns the following error when trying to call a function: ORA-6550... 'Test_Function’ is not a procedure or is undefined. Any ideas?
Thanks.
Lee.
I am using ODAC 5.80.0.35 with Delphi 2006 and Oracle 9i.
Example code:
Proc := TOraStoredProc.Create(Self);
Proc.Session := OraSession;
Proc.StoredProcName := 'Test_Procedure';
Proc.Params.CreateParam(ftInteger, 'iUserKey', ptInput).Value := 1;
Proc.ExecProc;
The above code works with an Oracle procedure, but returns the following error when trying to call a function: ORA-6550... 'Test_Function’ is not a procedure or is undefined. Any ideas?
Thanks.
Lee.