@@ -276,16 +276,16 @@ class UtplsqlDao {
276
276
var sql = ' ' '
277
277
WITH
278
278
base AS (
279
- SELECT rownum AS an_id,
280
- o.object_owner,
281
- o.object_type,
282
- o.object_name,
283
- lower(a.name) AS name,
284
- a.text,
279
+ SELECT rownum AS an_id,
280
+ o.object_owner,
281
+ o.object_type,
282
+ o.object_name,
283
+ lower(a.name) AS name,
284
+ a.text,
285
285
a.subobject_name
286
286
FROM table(ut3.ut_annotation_manager.get_annotated_objects(user, ' PACKAGE ' )) o
287
287
CROSS JOIN table(o.annotations) a
288
- WHERE lower(a.name) in (' suite' ,' suitepath' , ' endcontext' ,' test' )
288
+ WHERE lower(a.name) in (' suite' , ' suitepath' , ' endcontext' , ' test' )
289
289
OR lower(a.name) = ' context' AND regexp_like(text, ' (\w+ )(\. \w+ )* ' )
290
290
),
291
291
suite AS (
@@ -294,18 +294,18 @@ class UtplsqlDao {
294
294
WHERE name = ' suite'
295
295
),
296
296
suitepath as (
297
- SELECT object_owner, object_type, object_name, text as suitepath
297
+ SELECT object_owner, object_type, object_name, text AS suitepath
298
298
FROM base
299
299
WHERE name = ' suitepath'
300
300
),
301
301
context_base AS (
302
302
SELECT an_id,
303
- lead(an_id) over (partition by object_owner, object_type, object_name order by an_id) an_id_end,
303
+ lead(an_id) over (partition by object_owner, object_type, object_name order by an_id) AS an_id_end,
304
304
object_owner,
305
305
object_type,
306
306
object_name,
307
307
name,
308
- lead(name) over (partition by object_owner, object_type, object_name order by an_id) name_end,
308
+ lead(name) over (partition by object_owner, object_type, object_name order by an_id) AS name_end,
309
309
text as context
310
310
FROM base
311
311
WHERE name IN (' context' , ' endcontext' )
@@ -317,14 +317,14 @@ class UtplsqlDao {
317
317
AND name_end = ' endcontext'
318
318
),
319
319
test AS (
320
- SELECT b.an_id,
321
- b.object_owner,
322
- b.object_type,
320
+ SELECT b.an_id,
321
+ b.object_owner,
322
+ b.object_type,
323
323
b.object_name,
324
324
p.suitepath,
325
- c.context,
326
- b.subobject_name,
327
- b.text AS test_description
325
+ c.context,
326
+ b.subobject_name,
327
+ b.text AS test_description
328
328
FROM base b
329
329
LEFT JOIN suitepath p
330
330
ON p.object_owner = b.object_owner
@@ -334,11 +334,11 @@ class UtplsqlDao {
334
334
ON c.object_owner = b.object_owner
335
335
AND c.object_type = b.object_type
336
336
AND c.object_name = b.object_name
337
- AND b.an_id BETWEEN c.an_id AND c.an_id_end
337
+ AND b.an_id BETWEEN c.an_id AND c.an_id_end
338
338
WHERE name = ' test'
339
339
AND (b.object_owner, b.object_type, b.object_name) IN (
340
- select object_owner, object_type, object_name
341
- from suite
340
+ SELECT object_owner, object_type, object_name
341
+ FROM suite
342
342
)
343
343
),
344
344
suite_tree AS (
@@ -390,7 +390,7 @@ class UtplsqlDao {
390
390
substr(suitepath, 1, instr(suitepath || ' . ' , ' . ' , 1, g.pos) -1) AS suitepath
391
391
FROM suitepath_base b
392
392
JOIN gen g
393
- On g.pos <= regexp_count(suitepath, ' \w+ ' )
393
+ ON g.pos <= regexp_count(suitepath, ' \w+ ' )
394
394
),
395
395
suitepath_tree AS (
396
396
SELECT NULL AS parent_id,
0 commit comments