@@ -270,7 +270,7 @@ create or replace package body ut_suite_cache_manager is
270270 l_tags := replace(replace_legacy_tag_notation(l_tags),' ');
271271 end if;
272272 l_tags := REGEXP_REPLACE(l_tags,
273- '(\(|\)|\||\!|\&)?([^|&!-]+)(\(|\)|\||\!|\&)?',
273+ '(\(|\)|\||\!|\&)?([^|&!-() ]+)(\(|\)|\||\!|\&)?',
274274 q'[\1q'<\2>' member of tags\3]');
275275 --replace operands to XPath
276276 l_tags := REGEXP_REPLACE(l_tags, '\|',' or ');
@@ -310,23 +310,23 @@ with
310310 from suites_mv c where c.self_type in ('UT_TEST')
311311 and ]'||l_tags||q'[
312312 ),
313- tests_with_tags_inherited_from_suite as (
313+ tests_with_tags_inh_from_suite as (
314314 select c.id,c.self_type,c.path,c.tags multiset union distinct t.tags tags,c.object_owner
315315 from suites_mv c join suites_matching_expr t
316316 on (c.path||'.' like t.path || '.%' /*all descendants and self*/ and c.object_owner = t.object_owner)
317317 ),
318- tests_with_tags_promoted_to_suites as (
318+ tests_with_tags_prom_to_suite as (
319319 select c.id,c.self_type,c.path,c.tags multiset union distinct t.tags tags,c.object_owner
320320 from suites_mv c join tests_matching_expr t
321321 on (t.path||'.' like c.path || '.%' /*all ancestors and self*/ and c.object_owner = t.object_owner)
322322 )
323323 select obj from suites_mv c,
324324 (select id,row_number() over (partition by id order by id) r_num from
325325 (select id
326- from tests_with_tags_promoted_to_suites tst
326+ from tests_with_tags_prom_to_suite tst
327327 where ]'||l_tags||q'[
328328 union all
329- select id from tests_with_tags_inherited_from_suite tst
329+ select id from tests_with_tags_inh_from_suite tst
330330 where ]'||l_tags||q'[
331331 )
332332 ) t where c.id = t.id and r_num = 1 ]';
0 commit comments