I have problem with dbms_output in Toad, it ignores spaces, and lpad
and rpad
functions.
When I execute this procedure:
create or replace procedure example
as
w clob;
l_line varchar2 (244):=' ';
l_line_2 varchar2 (244):=' ';
begin
dbms_lob.createtemporary(w, true);
for k in 1..10 loop
l_line := l_line || (lpad (k,5,' '));
l_line_2:= l_line_2 || (lpad ('-',5,' '));
end loop;
dbms_lob.append(w, l_line|| chr(10));
dbms_lob.append(w, l_line_2|| chr(10));
dbms_output.put_line (w);
end example;
In SQL Developer I get this result:
1 2 3 4 5 6 7 8 9 10
- - - - - - - - - -
But in Toad I get this result:
1 2 3 4 5 6 7 8 9 10
- - - - - - - - - -
I have tried changing Toad options but result stay the same. What I have to do in Toad to have the same result as in SQL Developer?