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

Skip to content

Commit a3b3a20

Browse files
committed
Changed dbms_plssqlcode tables to be permanent.
1 parent c465151 commit a3b3a20

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

source/core/coverage/dbms_plssqlcode.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ begin
77
select synonym_name from all_synonyms where synonym_name = 'DBMSPCC_BLOCKS' and owner = sys_context('USERENV','CURRENT_SCHEMA'));
88
if l_tab_exist = 0 then
99
execute immediate q'[
10-
create global temporary table dbmspcc_blocks (
10+
create table dbmspcc_blocks (
1111
run_id number(38, 0),
1212
object_id number(38, 0),
1313
block number(38, 0),
@@ -21,7 +21,7 @@ begin
2121
constraint dbmspcc_blocks_covered_ck check ( covered in ( 0, 1 ) ) enable,
2222
constraint dbmspcc_blocks_not_feasible_ck check ( not_feasible in ( 0, 1 ) ) enable,
2323
constraint dbmspcc_blocks_pk primary key ( run_id, object_id, block ) using index
24-
) on commit preserve rows]';
24+
)]';
2525
end if;
2626
end;
2727
/
@@ -34,13 +34,13 @@ begin
3434
select synonym_name from all_synonyms where synonym_name = 'DBMSPCC_RUNS' and owner = sys_context('USERENV','CURRENT_SCHEMA'));
3535
if l_tab_exist = 0 then
3636
execute immediate q'[
37-
create global temporary table dbmspcc_runs (
37+
create table dbmspcc_runs (
3838
run_id number(38, 0),
3939
run_comment varchar2(4000 byte),
4040
run_owner varchar2(128 byte) constraint dbmspcc_runs_run_owner_nn not null enable,
4141
run_timestamp date constraint dbmspcc_runs_run_timestamp_nn not null enable,
4242
constraint dbmspcc_runs_pk primary key ( run_id ) using index enable
43-
) on commit preserve rows]';
43+
)]';
4444
end if;
4545
end;
4646
/
@@ -53,15 +53,15 @@ begin
5353
select synonym_name from all_synonyms where synonym_name = 'DBMSPCC_UNITS' and owner = sys_context('USERENV','CURRENT_SCHEMA'));
5454
if l_tab_exist = 0 then
5555
execute immediate q'[
56-
create global temporary table dbmspcc_units (
56+
create table dbmspcc_units (
5757
run_id number(38, 0),
5858
object_id number(38, 0),
5959
owner varchar2(128 byte) constraint dbmspcc_units_owner_nn not null enable,
6060
name varchar2(128 byte) constraint dbmspcc_units_name_nn not null enable,
6161
type varchar2(12 byte) constraint dbmspcc_units_type_nn not null enable,
6262
last_ddl_time date constraint dbmspcc_units_last_ddl_time_nn not null enable,
6363
constraint dbmspcc_units_pk primary key ( run_id, object_id ) using index enable
64-
) on commit preserve rows]';
64+
)]';
6565
end if;
6666
end;
6767
/

0 commit comments

Comments
 (0)