Last week our company tried to updage from ODAC 6.90 to ODAC 9, (Delphi 2007) which did not succeded. We are using ODAC for a very long time, and these very old stored functions does not have the isresult=true property in the component.
For example, I have created this simple function:
Code: Select all
create or replace function proba_uj_Tranzakcio return float is
begin
return 0;
end;
Code: Select all
object stp_proba: TOraStoredProc
StoredProcName = 'proba_uj_tranzakcio'
Session = OraSession1
SQL.Strings = (
'begin'
' :RESULT := proba_uj_tranzakcio;'
'end;')
Options.AutoPrepare = True
Left = 96
Top = 164
ParamData = <
item
DataType = ftFloat
Name = 'RESULT'
ParamType = ptOutput
end>
end
properties does not exists in the component, but it works with ODAC 6.90CommandStoredProcname, isResult
However, with ODAC 9, it gives a worng number or types... error message, because ODAC 9 tries to call
Code: Select all
tranzakcio( :RESULT);Code: Select all
:RESULT := proba_uj_tranzakcio;