Oracle 12c Select + Function FAIL

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sinys
Posts: 186
Joined: Tue 21 Feb 2012 03:44

Oracle 12c Select + Function FAIL

Post by sinys » Mon 04 Aug 2014 17:51

ODAC 9.3.10 XE2 Oracle 12c

Code: Select all

procedure TForm2.Button1Click(Sender: TObject);
begin
  OraScript1.SQL.Text :=
'WITH' + #13#10 +
'  FUNCTION with_function(p_id IN NUMBER) RETURN NUMBER IS' + #13#10 +
'  BEGIN' + #13#10 +
'    RETURN p_id;' + #13#10 +
'  END;' + #13#10 +
'SELECT with_function(1)' + #13#10 +
'FROM   dual' + #13#10 +
'/';

  ShowMessage(IntToStr(OraScript1.Statements.Count)); // SHOWED 3 instead 1
end;
In sqlplus this script is working well.

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

Re: Oracle 12c Select + Function FAIL

Post by AlexP » Tue 05 Aug 2014 08:57

Hello,

Thank you for the information. We have added support for 'WITH FUNCTION...' clause, this feature will be included to the next build.

sinys
Posts: 186
Joined: Tue 21 Feb 2012 03:44

Re: Oracle 12c Select + Function FAIL

Post by sinys » Tue 09 Aug 2016 12:08

ODAC 9.7.25
It doesn't work again.

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

Re: Oracle 12c Select + Function FAIL

Post by AlexP » Wed 10 Aug 2016 09:02

We will fix this behavior till the release of the next build

Post Reply