Upgraded from 6.90 to 9.0 Wrong number of types...

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
valentl
Posts: 16
Joined: Wed 22 May 2013 06:15

Upgraded from 6.90 to 9.0 Wrong number of types...

Post by valentl » Wed 22 May 2013 06:52

Hello,

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;
And the Delphi Component:

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
Clearly visible, that the
CommandStoredProcname, isResult
properties does not exists in the component, but it works with ODAC 6.90
However, with ODAC 9, it gives a worng number or types... error message, because ODAC 9 tries to call

Code: Select all

tranzakcio( :RESULT);
, instead of

Code: Select all

:RESULT := proba_uj_tranzakcio;
One thing, that may help. If the Commandstoredprocname property exists, but the isResult doesn't, it will not work on ODAC 6.90, but we have never had problem with this. Only these very old stored functions (for example one of them was created in 1998) are causing problems with ODAC 9. Maybe the ODAC version 2 in 2001 (the first ODAC version we were using with Delphi3) did not had these properties?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Upgraded from 6.90 to 9.0 Wrong number of types...

Post by AlexP » Wed 22 May 2013 14:20

Hello,

We know about the problem with IsResult in dfm and will try to fix this behaviour in the next build.

valentl
Posts: 16
Joined: Wed 22 May 2013 06:15

Re: Upgraded from 6.90 to 9.0 Wrong number of types...

Post by valentl » Thu 23 May 2013 07:15

Thank you for the quick answer

Post Reply