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

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Assuring that no locks are held on temp tables after test run is fini…
…shed and transaction is committed.
  • Loading branch information
jgebal committed Jun 24, 2019
commit c66b4d7759ab3b47e7f76146229afe3492957949
1 change: 0 additions & 1 deletion source/core/coverage/ut_coverage_helper.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ create or replace package body ut_coverage_helper is
procedure cleanup_tmp_table is
pragma autonomous_transaction;
begin
null;
execute immediate 'truncate table ut_coverage_sources_tmp';
commit;
end;
Expand Down
4 changes: 2 additions & 2 deletions source/core/ut_utils.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ create or replace package body ut_utils is
procedure read_cache_to_dbms_output is
l_lines_data sys_refcursor;
l_lines ut_varchar2_rows;
c_lines_limit constant integer := 100;
c_lines_limit constant integer := 1000;
pragma autonomous_transaction;
begin
open l_lines_data for select text from ut_dbms_output_cache order by seq_no;
Expand All @@ -558,7 +558,7 @@ create or replace package body ut_utils is
end loop;
exit when l_lines_data%notfound;
end loop;
delete from ut_dbms_output_cache;
execute immediate 'truncate table ut_dbms_output_cache';
commit;
end;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ create global temporary table ut_compound_data_diff_tmp(
constraint ut_compound_data_diff_tmp_chk check(
item_no is not null
)
) on commit preserve rows;
) on commit delete rows;
2 changes: 1 addition & 1 deletion source/expectations/data_values/ut_compound_data_tmp.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ create global temporary table ut_compound_data_tmp(
pk_hash raw(128),
duplicate_no integer,
constraint ut_cmp_data_tmp_hash_pk unique (data_id, item_no, duplicate_no)
) on commit preserve rows;
) on commit delete rows;
--xmltype column item_data store as binary xml;
2 changes: 1 addition & 1 deletion source/expectations/data_values/ut_json_data_diff_tmp.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ create global temporary table ut_json_data_diff_tmp(
exp_json_type varchar2(2000),
exp_access_path varchar2(4000),
exp_parent_path varchar2(4000)
) on commit preserve rows;
) on commit delete rows;