Toad shows a Syntax Check error when attempting to compile and format the below procedure. The error is pointing to the period "." which is indicating reference collections that are elements of other objects (junk_rec.junk_att).
CREATE OR REPLACE PROCEDURE junk_prc IS
....
BEGIN
FORALL i IN INDICES OF junk_rec.junk_att
DELETE FROM junk
WHERE 0 = 1 AND 0 = junk_rec.junk_att (i);
END junk_prc;
Toad does not support this type of syntax.
WORKAROUND:
None
STATUS:
Waiting for fix in a future release of Toad for Oracle.
Place the code in an anonymous block and compile it.