I have next code and it fails with error if I try to get empty array from SQL Procedure
CREATE OR REPLACE PACKAGE test_pkg AS
TYPE t_testdata_out_int_array IS TABLE OF test_data.out_int%TYPE INDEX BY BINARY_INTEGER;
TYPE t_testdata_out_string_array IS TABLE OF test_data.out_string%TYPE INDEX BY BINARY_INTEGER;
PROCEDURE test_proc_int_and_string_arrays(
in_string IN VARCHAR2,
outs_int OUT t_testdata_out_int_array,
outs_string OUT t_testdata_out_string_array,
out_string OUT VARCHAR2
);
END test_pkg;
CREATE OR REPLACE PACKAGE BODY test_pkg AS
PROCEDURE test_proc_int_and_string_arrays(
in_string IN VARCHAR2,
outs_int OUT t_testdata_out_int_array,
outs_string OUT t_testdata_out_string_array,
out_string OUT VARCHAR2
) AS
idx NUMBER := 1;
BEGIN
FOR idx IN 1..3 LOOP
outs_int(idx) := idx;
--outs_string(idx) := idx||'_out';
END LOOP;
out_string := in_string||'_out';
END;
END test_pkg;
Hi
I have next code and it fails with error if I try to get empty array from SQL Procedure