Skip to content

Commit

Permalink
fixed indentation of an example
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhibhammar committed Oct 16, 2024
1 parent 80abc29 commit 9732b97
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,21 +187,21 @@ INSERT INTO foo values(1, 'Peter');
```sql
DECLARE
TYPE namelist_t IS TABLE OF VARCHAR2 (5000);
names_with_errors namelist_t := namelist_t (RPAD ('ABCD', 1000, 'ABC'),'George',RPAD ('ABCD', 3000, 'ABC'),'Max');
ex_dml_errors EXCEPTION;
names_with_errors namelist_t := namelist_t (RPAD ('ABCD', 1000, 'ABC'),'George',RPAD ('ABCD', 3000, 'ABC'),'Max');
ex_dml_errors EXCEPTION;
PRAGMA EXCEPTION_INIT(ex_dml_errors, -24381);

BEGIN
FORALL indx IN 1 .. names_with_errors.COUNT SAVE EXCEPTIONS
UPDATE foo SET name = names_with_errors (indx);
UPDATE foo SET name = names_with_errors (indx);

EXCEPTION
WHEN ex_dml_errors THEN
-- Handling exceptions
FOR i IN 1..SQL%BULK_EXCEPTIONS.COUNT LOOP
DBMS_OUTPUT.PUT_LINE('SAVE EXCEPTIONS: The Error at ' || SQL%BULK_EXCEPTIONS(i).ERROR_INDEX ||
WHEN ex_dml_errors THEN
-- Handling exceptions
FOR i IN 1..SQL%BULK_EXCEPTIONS.COUNT LOOP
DBMS_OUTPUT.PUT_LINE('SAVE EXCEPTIONS: The Error at ' || SQL%BULK_EXCEPTIONS(i).ERROR_INDEX ||
' Error Code ' || SQL%BULK_EXCEPTIONS(i).ERROR_CODE);
END LOOP;
END LOOP;
END;

__OUTPUT__
Expand Down

0 comments on commit 9732b97

Please sign in to comment.