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

Skip to content

Commit b9bb600

Browse files
committed
Updated install script, so it can fail if there are invalid sources after installation.
1 parent 26cd400 commit b9bb600

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

source/install.sql

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,18 @@ whenever oserror exit failure rollback
3434
@@ut_assert.pkb
3535
@@ut_suite_manager.pkb
3636

37-
select * from user_errors
38-
where name not like 'BIN$%';
37+
select * from user_errors where name not like 'BIN$%';
38+
39+
declare
40+
l_cnt integer;
41+
begin
42+
select count(1)
43+
into l_cnt
44+
from user_errors where name not like 'BIN$%';
45+
if l_cnt > 0 then
46+
raise_application_error(-20000, 'Not all sources were successfully installed.');
47+
end if;
48+
end;
49+
/
3950

4051
exit success

0 commit comments

Comments
 (0)