Page 1 of 1

Oracle 12c Select + Function FAIL

Posted: Mon 04 Aug 2014 17:51
by sinys
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.

Re: Oracle 12c Select + Function FAIL

Posted: Tue 05 Aug 2014 08:57
by AlexP
Hello,

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

Re: Oracle 12c Select + Function FAIL

Posted: Tue 09 Aug 2016 12:08
by sinys
ODAC 9.7.25
It doesn't work again.

Re: Oracle 12c Select + Function FAIL

Posted: Wed 10 Aug 2016 09:02
by AlexP
We will fix this behavior till the release of the next build