Skip to content

Commit 91fc685

Browse files
committed
Finished Upgrade Testing
1 parent 7a12eb3 commit 91fc685

File tree

7 files changed

+4611
-3110
lines changed

7 files changed

+4611
-3110
lines changed

src/core/test_all.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ end;
2929

3030
begin
3131
wtplsql.test_all;
32-
wt_text_report.dbms_out;
32+
wt_text_report.dbms_out(in_detail_level => 30);
3333
end;
3434
/
3535

src/core/test_allO.LST

Lines changed: 4246 additions & 28 deletions
Large diffs are not rendered by default.

src/core/uninstallO.LST

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ begin
2929
execute immediate sql_txt;
3030
end loop;
3131
end;
32-
drop public synonym UTASSERT
33-
drop public synonym WTPLSQL
34-
drop public synonym WT_ASSERT
35-
drop public synonym WT_DBOUT_PROFILES
36-
drop public synonym WT_RESULTS
37-
drop public synonym WT_SELF_TEST
38-
drop public synonym WT_TESTCASE_STATS
39-
drop public synonym WT_TEST_RUNS
40-
drop public synonym WT_TEST_RUNS_SEQ
41-
drop public synonym WT_TEST_RUN_STATS
42-
drop public synonym WT_TEXT_REPORT
43-
drop public synonym WT_VERSION
4432
drop public synonym WT_WTPLSQL
33+
drop public synonym WT_VERSION
34+
drop public synonym WT_TEXT_REPORT
35+
drop public synonym WT_TEST_RUN_STATS
36+
drop public synonym WT_TEST_RUNS_SEQ
37+
drop public synonym WT_TEST_RUNS
38+
drop public synonym WT_TESTCASE_STATS
39+
drop public synonym WT_SELF_TEST
40+
drop public synonym WT_RESULTS
41+
drop public synonym WT_DBOUT_PROFILES
42+
drop public synonym WT_ASSERT
43+
drop public synonym WTPLSQL
44+
drop public synonym UTASSERT
4545

4646

4747
PL/SQL procedure successfully completed.

src/core/upgrades/V1.0.0_to_Current/update_all_stats.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
-- Compute and Add statistics to V1.1.0 "stats" tables
66
--
77

8-
spool update_all_stats
98
set serveroutput on size unlimited format wrapped
109
set linesize 1000
1110
set trimspool on
@@ -157,5 +156,3 @@ begin
157156
--
158157
end;
159158
/
160-
161-
spool off

src/core/upgrades/V1.0.0_to_Current/upgrade.sql

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ WHENEVER SQLERROR continue
2828

2929
revoke connect, resource from &schema_owner.;
3030

31-
grant quota unlimited to &schema_owner.;
31+
alter user &schema_owner. quota unlimited on USERS;
3232
grant create session to &schema_owner.;
3333
grant create type to &schema_owner.;
3434
grant create sequence to &schema_owner.;
@@ -80,12 +80,19 @@ drop table wt_test_data;
8080
revoke select, insert, delete on plsql_profiler_runs from public;
8181
revoke select, insert, delete on plsql_profiler_units from public;
8282
revoke select, insert, delete on plsql_profiler_data from public;
83-
revoke insert on wt_test_runs from public;
8483
revoke insert on wt_results from public;
8584
revoke insert on wt_dbout_profiles from public;
8685
revoke update on wt_dbout_profiles from public;
8786

87+
-- Note: This table was included with the V1.0 source
88+
-- but was omitted from the V1.0 installation script.
8889
@../../wt_version.tab
90+
delete from wt_version where action = 'INSTALL' and text = '1.0';
91+
insert into wt_version (install_dtm, action, text)
92+
values (sysdate, 'INSTALL', '1.0');
93+
insert into wt_version (install_dtm, action, text)
94+
values (sysdate, 'UPGRADE', '1.1.0');
95+
8996
@../../wt_testcase_stats.tab
9097
@../../wt_test_run_stats.tab
9198
@../../wt_self_test.tab
@@ -101,10 +108,10 @@ comment on column wt_results.interval_msecs is 'Interval time in milliseonds sin
101108
alter table wt_dbout_profiles rename column total_time to total_usecs;
102109
alter table wt_dbout_profiles rename column min_time to min_usecs;
103110
alter table wt_dbout_profiles rename column max_time to max_usecs;
104-
comment on column wt_dbout_profiles.status is 'Executed/NotExecuted/Excluded/Annotated/Unknown Status from the Profiler';
105-
comment on column wt_dbout_profiles.total_time is 'Total time spent executing this line.';
106-
comment on column wt_dbout_profiles.min_time is 'Minimum execution time for this line.';
107-
comment on column wt_dbout_profiles.max_time is 'Maximum execution time for this line.';
111+
comment on column wt_dbout_profiles.status is 'Executed/NotExecuted/Excluded/Ignored/Unknown Status from the Profiler';
112+
comment on column wt_dbout_profiles.total_usecs is 'Total time in microseconds spent executing this line.';
113+
comment on column wt_dbout_profiles.min_usecs is 'Minimum execution time in microseconds for this line.';
114+
comment on column wt_dbout_profiles.max_usecs is 'Maximum execution time in microseconds for this line.';
108115
alter table wt_dbout_profiles drop constraint wt_dbout_profiles_ck1;
109116
update wt_dbout_profiles set status = 'IGNR' where status = 'ANNO';
110117
alter table wt_dbout_profiles add constraint wt_dbout_profiles_ck1 check (status in ('EXEC','NOTX','EXCL','IGNR','UNKN'));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy