From 9732b97a74f422681c537fed0fb130cfd7c54692 Mon Sep 17 00:00:00 2001 From: nidhibhammar <59045594+nidhibhammar@users.noreply.github.com> Date: Wed, 16 Oct 2024 08:44:33 +0530 Subject: [PATCH] fixed indentation of an example --- .../03_using_the_forall_statement.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/product_docs/docs/epas/17/application_programming/epas_compat_spl/12_working_with_collections/03_using_the_forall_statement.mdx b/product_docs/docs/epas/17/application_programming/epas_compat_spl/12_working_with_collections/03_using_the_forall_statement.mdx index 78a0ea9d18f..31e29adc603 100644 --- a/product_docs/docs/epas/17/application_programming/epas_compat_spl/12_working_with_collections/03_using_the_forall_statement.mdx +++ b/product_docs/docs/epas/17/application_programming/epas_compat_spl/12_working_with_collections/03_using_the_forall_statement.mdx @@ -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__