I have just installed Toad for Oracle version 10.1.1.8 and have noticed some formatting issues. For example, the following does not format with the multi-line comment in place:
declare
procedure test_proc is begin
begin
for io_cursor in (select * from DUAL)
loop
if 1=1 then
NULL;
end if;
/*
multi line comment
this line will cause the formatter not to format properly
*/
end loop;
commit;
end;
exception
when others then
rollback;
end test_proc;
begin
null;
end;
If the comment is removed, this is the result:
DECLARE
PROCEDURE test_proc
IS
BEGIN
BEGIN
FOR io_cursor IN ( SELECT * FROM DUAL )
LOOP
IF 1 = 1
THEN
NULL;
END IF;
END LOOP;
COMMIT;
END;
EXCEPTION
WHEN OTHERS
THEN
ROLLBACK;
END test_proc;
BEGIN
NULL;
END;
Does anybody have a fix or suggestions towards a fix?