Params and property isNull

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
dpsistemi
Posts: 8
Joined: Tue 01 Mar 2005 11:22

Params and property isNull

Post by dpsistemi » Thu 03 Mar 2005 09:46

Hi !

I'm now using ODAC 5.50.15 in D5.
Recently i upgrade the version of ODAC from 2.50 to 5.50

Well, i have a Oracle Function that return a Varchar2, with in some case the result := Null

With ODAC 2.50, the test Params[0].isNull work correctly
With ODAC 5.50, this test fails

Thanks

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Thu 03 Mar 2005 14:19

Send us please small demo project to demonstrate the problem and include script to create server objects to ODAC support address.

dpsistemi
Posts: 8
Joined: Tue 01 Mar 2005 11:22

Source Example

Post by dpsistemi » Fri 04 Mar 2005 08:39

For the problem of Property Params.isNull

Code: Select all

-- Oracle Function
FUNCTION FC_PIPPO RETURN VARCHAR2
AS
BEGIN
  RETURN(NULL);
END;

-- Delphi DFM
  object OraStoredProc1: TOraStoredProc
    StoredProcName = 'FC_PIPPO'
    Session = OraSession1
    SQL.Strings = (
      'begin'
      '  :RESULT := FC_PIPPO;'
      'end;')
    Left = 100
    Top = 48
    ParamData = 
  end

-- Delphi pas
OraStoredProc1.Execute ;
if OraStoredProc1.Params[0].isNull then ShowMessage('null')
                                   else ShowMessage('not null') ;
In execution, the output message is 'NOT NULL', but the value assigned by oracle is NULL

Thanks

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Sat 05 Mar 2005 09:29

Thank you for information.
We reproduced your problem and fixed it. This fix will be included in the next ODAC build.

wsUser
Posts: 1
Joined: Wed 30 May 2007 15:10

Post by wsUser » Wed 30 May 2007 15:17

I'm still getting the error described by dpsistemi
with:

ODAC 5.80.0.36
Delphi 7
Oracle 10g

Isn't this already fixed?

Thanks

Post Reply