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

Skip to content

Commit 2fc64b8

Browse files
committed
Added prompts and additional filtering to install script
1 parent b9bb600 commit 2fc64b8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

source/install.sql

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
whenever sqlerror exit failure rollback
22
whenever oserror exit failure rollback
33

4+
prompt Installing utplsql framework
45
@@types/ut_object.tps
56
@@types/ut_objects_list.tps
67
@@types/ut_composite_object.tps
@@ -34,14 +35,16 @@ whenever oserror exit failure rollback
3435
@@ut_assert.pkb
3536
@@ut_suite_manager.pkb
3637

37-
select * from user_errors where name not like 'BIN$%';
38+
39+
prompt Validating installation
40+
select * from user_errors where name not like 'BIN$%' and name like 'UT\_%' escape '\';
3841
3942
declare
4043
l_cnt integer;
4144
begin
4245
select count(1)
4346
into l_cnt
44-
from user_errors where name not like 'BIN$%';
47+
from user_errors where name not like 'BIN$%' and name like 'UT\_%' escape '\';
4548
if l_cnt > 0 then
4649
raise_application_error(-20000, 'Not all sources were successfully installed.');
4750
end if;

0 commit comments

Comments
 (0)