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

Skip to content

Commit 9100923

Browse files
committed
Updated plsql_optimizer_level according to PR comment.
1 parent 570a341 commit 9100923

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

source/core/types/ut_output_stream.tpb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
alter session set plsql_optimize_level=1;
2-
--we need to use plsql optimize level=1 to prevent
3-
-- Oracle from changing the for loop to bulk collect into
4-
-- The row-by-row approach is needed to get the visible progress ot unit tests outputs
5-
-- as the tests get executed.
61
create or replace type body ut_output_stream as
72

83
overriding final member procedure close(self in out nocopy ut_output_stream) is
@@ -28,5 +23,8 @@ create or replace type body ut_output_stream as
2823

2924
end;
3025
/
31-
--going back to the "default" level 2?
32-
alter session set plsql_optimize_level=2;
26+
--we need to use plsql optimize level=1 to prevent
27+
-- Oracle from changing the for loop to bulk collect into
28+
-- The row-by-row approach is needed to get the visible progress ot unit tests outputs
29+
-- as the tests get executed.
30+
alter type body ut_output_stream compile plsql_optimize_level = 1;

0 commit comments

Comments
 (0)