Page 1 of 1

OraScript cannot parse PL/SQL block preceeded by a comment

Posted: Thu 30 Apr 2020 11:03
by holger_nis
The latest ODAC build introduced a problem with the TOraScript component.
if your script contains an anonymous PL/SQL block that is preceeded by a comment, the OraScript component takes the first two lines as a separate statement, i.e. the line starting with "begin" is handled as the beginning of the next statement.
You can reproduce it using the following example:

Code: Select all

-- this is a comment
declare
  i integer;
begin
  null;
end;
Regards,
Holger

Re: OraScript cannot parse PL/SQL block preceeded by a comment

Posted: Mon 18 May 2020 16:38
by MaximG
Thank you for the information. We've reproduced the issue and fixed it. The fix will be included in the next build of our product.