Page 1 of 1

OraScript Error

Posted: Thu 13 Mar 2014 17:12
by sinys
ODAC 9.2.7 D XE2

Code: Select all

procedure TForm2.Button1Click(Sender: TObject);
begin
  OraScript1.SQL.Text :=
    '<<outer_block>>'                      + #13#10 +
    'declare'                              + #13#10 +
    '  a number := 4;'                     + #13#10 +
    'begin '                               + #13#10 +
    '    <<inner_block>> '                 + #13#10 +
    '    declare'                          + #13#10 +
    '      a number := 5;'                 + #13#10 +
    '    begin'                            + #13#10 +
    '      dbms_output.put_line(''outer a = '' || outer_block.a);' + #13#10 +
    '      dbms_output.put_line(''inner a = '' || inner_block.a);' + #13#10 +
    '    end;'                             + #13#10 +
    'end local_block;'                     + #13#10 +
    '/'                                    + #13#10;
  ShowMessage(IntToStr(OraScript1.Statements.Count)); // show 2
  ShowMessage(OraScript1.Statements[0].SQL);
  ShowMessage(OraScript1.Statements[1].SQL);
end;
OraScript1.Statements.Count show 2 instead 1.

Re: OraScript Error

Posted: Fri 14 Mar 2014 08:45
by AlexP
Hello,

Thank you for the information. We have reproduced the problem and will try to fix it as soon as possible.

Re: OraScript Error

Posted: Wed 17 Sep 2014 16:59
by sinys
I want to remember about this feature because it wasn't fixed in 9.4.11.

Re: OraScript Error

Posted: Thu 18 Sep 2014 11:10
by AlexP
This feature is added to our roadmap, however, it is not a priority and we cannot tell the exact terms of its implementation.