Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d015fd2

Browse files
mihail.chernyhmihail.chernyh
authored andcommitted
bag fix
source bag: ORA-06512: на "SYS.DBMS_LOB", line 1146 ORA-06512: на "UT3.UT_EXECUTABLE", line 88 ORA-06512: на "UT3.UT_EXECUTABLE", line 135 ORA-06512: на "UT3.UT_EXECUTABLE", line 65 ORA-06512: на "UT3.UT_TEST", line 76 ORA-06512: на "UT3.UT_SUITE_ITEM", line 48 ORA-06512: на "UT3.UT_SUITE", line 74 ORA-06512: на "UT3.UT_RUN", line 41 ORA-06512: на "UT3.UT_SUITE_ITEM", line 48 ORA-06512: на "UT3.UT_RUNNER", line 34 ORA-06502: PL/SQL: ошибка числа или значения
1 parent 7f2123f commit d015fd2

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

source/core/types/ut_executable.tpb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,14 @@ create or replace type body ut_executable is
8484
loop
8585
dbms_output.get_line(line => l_line, status => l_status);
8686
exit when l_status = 1;
87-
88-
dbms_lob.writeappend(lob_loc => self.serveroutput,
89-
amount => length(l_line),
90-
buffer => l_line);
91-
dbms_lob.writeappend(lob_loc => self.serveroutput,
92-
amount => 1,
93-
buffer => chr(10));
87+
if l_line is not null then
88+
dbms_lob.writeappend(lob_loc => self.serveroutput,
89+
amount => length(l_line),
90+
buffer => l_line);
91+
dbms_lob.writeappend(lob_loc => self.serveroutput,
92+
amount => 1,
93+
buffer => chr(10));
94+
end if;
9495
end loop;
9596
end save_dbms_output;
9697
begin

0 commit comments

Comments
 (0)