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

Skip to content

Commit a092151

Browse files
committed
Simplified install validation and addressed review comment on filtering UT objects only.
1 parent b800476 commit a092151

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

source/install.sql

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -183,26 +183,21 @@ whenever oserror exit failure rollback
183183

184184

185185
set linesize 200
186+
set verify off
187+
set define &
186188
column text format a100
189+
column error_count noprint new_value error_count
187190
prompt Validating installation
188-
select name, type, sequence, line, position, text
191+
select name, type, sequence, line, position, text, count(1) over() error_count
189192
from user_errors
190193
where name not like 'BIN$%' --not recycled
191-
and (name like 'UT%')
194+
and (name = 'UT' or name like 'UT\_%' escape '\')
192195
-- errors only. ignore warnings
193196
and attribute = 'ERROR'
194197
/
195198
196-
declare
197-
l_cnt integer;
198199
begin
199-
select count(1)
200-
into l_cnt
201-
from user_errors
202-
where name not like 'BIN$%'
203-
and (name like 'UT%')
204-
and attribute = 'ERROR';
205-
if l_cnt > 0 then
200+
if to_number('&&error_count') > 0 then
206201
raise_application_error(-20000, 'Not all sources were successfully installed.');
207202
end if;
208203
end;

0 commit comments

Comments
 (0)