Skip to content

Commit 135a957

Browse files
committed
Change behavior of functions_are()
It is now excluding procedures from the list of functions. See `procedures_are()` instead.
1 parent b897cb9 commit 135a957

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/pgtap.sql.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4979,7 +4979,7 @@ RETURNS TEXT AS $$
49794979
SELECT _are(
49804980
'functions',
49814981
ARRAY(
4982-
SELECT name FROM tap_funky WHERE schema = $1
4982+
SELECT name FROM tap_funky WHERE schema = $1 and kind != 'p'
49834983
EXCEPT
49844984
SELECT $2[i]
49854985
FROM generate_series(1, array_upper($2, 1)) s(i)
@@ -4988,7 +4988,7 @@ RETURNS TEXT AS $$
49884988
SELECT $2[i]
49894989
FROM generate_series(1, array_upper($2, 1)) s(i)
49904990
EXCEPT
4991-
SELECT name FROM tap_funky WHERE schema = $1
4991+
SELECT name FROM tap_funky WHERE schema = $1 and kind != 'p'
49924992
),
49934993
$3
49944994
);
@@ -5006,7 +5006,7 @@ RETURNS TEXT AS $$
50065006
SELECT _are(
50075007
'functions',
50085008
ARRAY(
5009-
SELECT name FROM tap_funky WHERE is_visible
5009+
SELECT name FROM tap_funky WHERE is_visible and kind != 'p'
50105010
AND schema NOT IN ('pg_catalog', 'information_schema')
50115011
EXCEPT
50125012
SELECT $1[i]
@@ -5016,7 +5016,7 @@ RETURNS TEXT AS $$
50165016
SELECT $1[i]
50175017
FROM generate_series(1, array_upper($1, 1)) s(i)
50185018
EXCEPT
5019-
SELECT name FROM tap_funky WHERE is_visible
5019+
SELECT name FROM tap_funky WHERE is_visible and kind != 'p'
50205020
AND schema NOT IN ('pg_catalog', 'information_schema')
50215021
),
50225022
$2

0 commit comments

Comments
 (0)