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;
Holger