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

Skip to content

Commit 20c644d

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 20c644d

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

source/core/types/ut_executable.tpb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,13 @@ 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);
87+
88+
if l_line is not null then
89+
dbms_lob.writeappend(lob_loc => self.serveroutput,
90+
amount => length(l_line),
91+
buffer => l_line);
92+
end if;
93+
9194
dbms_lob.writeappend(lob_loc => self.serveroutput,
9295
amount => 1,
9396
buffer => chr(10));

0 commit comments

Comments
 (0)