File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ create or replace type body ut_output_dbms_output as
1818 end;
1919
2020 overriding member procedure send_clob(self in out nocopy ut_output_dbms_output, a_text clob) is
21- v_buffer ut_varchar2_list;
21+ l_buffer ut_varchar2_list;
2222 begin
23- v_buffer := ut_utils.clob_to_table(a_text);
24- for i in 1 .. v_buffer .count loop
25- dbms_output.put_line(v_buffer (i));
23+ l_buffer := ut_utils.clob_to_table(a_text);
24+ for i in 1 .. l_buffer .count loop
25+ dbms_output.put_line(l_buffer (i));
2626 end loop;
2727 end;
2828
@@ -32,15 +32,15 @@ create or replace type body ut_output_dbms_output as
3232 end;
3333
3434 overriding final member function get_lines(a_output_id varchar2) return ut_varchar2_list pipelined is
35- l_buffer clob ;
36- l_status integer;
35+ l_buffer varchar2(32767) ;
36+ l_status integer;
3737 c_max_line_length constant integer := 4000;
3838 l_results_tab ut_varchar2_list;
3939 begin
4040 loop
4141 dbms_output.get_line (l_buffer, l_status);
4242 exit when l_status != 0;
43- select column_value bulk collect into l_results_tab from table( ut_utils.clob_to_table(l_buffer, c_max_line_length) );
43+ l_results_tab := ut_utils.clob_to_table(l_buffer, c_max_line_length);
4444 --pipe results one by one
4545 for i in 1 .. l_results_tab.count loop
4646 pipe row( l_results_tab(i) );
You can’t perform that action at this time.
0 commit comments