File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,12 @@ with functions as (
35
35
${ props . idsFilter ? `p.oid ${ props . idsFilter } AND` : '' }
36
36
${ props . nameFilter ? `p.proname ${ props . nameFilter } AND` : '' }
37
37
${
38
- props . args && props . args . length > 0
39
- ? `p.proargtypes::text = ${
40
- props . args . length
41
- ? `(
38
+ props . args === undefined
39
+ ? ''
40
+ : props . args . length > 0
41
+ ? `p.proargtypes::text = ${
42
+ props . args . length
43
+ ? `(
42
44
SELECT STRING_AGG(type_oid::text, ' ') FROM (
43
45
SELECT (
44
46
split_args.arr[
@@ -57,9 +59,9 @@ with functions as (
57
59
) AS split_args
58
60
) args
59
61
)`
60
- : "''"
61
- } AND`
62
- : ''
62
+ : "''"
63
+ } AND`
64
+ : ''
63
65
}
64
66
p.prokind = 'f'
65
67
)
Original file line number Diff line number Diff line change 9
9
pg_stat_activity
10
10
) AS active_connections,
11
11
current_setting('max_connections') :: int8 AS max_connections
12
-
13
12
`
You can’t perform that action at this time.
0 commit comments