Skip to content

Commit 2d876f6

Browse files
committed
Adjust test for new behavior of functions_are()
1 parent c3b7b24 commit 2d876f6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/sql/aretap.sql

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -511,23 +511,23 @@ SELECT * FROM check_test(
511511
-- Test functions_are().
512512

513513
SELECT * FROM check_test(
514-
functions_are( 'someschema', ARRAY['yip', 'yap', 'someproc'], 'whatever' ),
514+
functions_are( 'someschema', ARRAY['yip', 'yap'], 'whatever' ),
515515
true,
516516
'functions_are(schema, functions, desc)',
517517
'whatever',
518518
''
519519
);
520520

521521
SELECT * FROM check_test(
522-
functions_are( 'someschema', ARRAY['yip', 'yap', 'someproc'] ),
522+
functions_are( 'someschema', ARRAY['yip', 'yap'] ),
523523
true,
524524
'functions_are(schema, functions)',
525525
'Schema someschema should have the correct functions'
526526
''
527527
);
528528

529529
SELECT * FROM check_test(
530-
functions_are( 'someschema', ARRAY['yip', 'yap', 'someproc', 'yop'], 'whatever' ),
530+
functions_are( 'someschema', ARRAY['yip', 'yap', 'yop'], 'whatever' ),
531531
false,
532532
'functions_are(schema, functions, desc) + missing',
533533
'whatever',
@@ -536,7 +536,7 @@ SELECT * FROM check_test(
536536
);
537537

538538
SELECT * FROM check_test(
539-
functions_are( 'someschema', ARRAY['yip', 'someproc'], 'whatever' ),
539+
functions_are( 'someschema', ARRAY['yip'], 'whatever' ),
540540
false,
541541
'functions_are(schema, functions, desc) + extra',
542542
'whatever',
@@ -545,7 +545,7 @@ SELECT * FROM check_test(
545545
);
546546

547547
SELECT * FROM check_test(
548-
functions_are( 'someschema', ARRAY['yap', 'yop', 'someproc'], 'whatever' ),
548+
functions_are( 'someschema', ARRAY['yap', 'yop'], 'whatever' ),
549549
false,
550550
'functions_are(schema, functions, desc) + extra & missing',
551551
'whatever',
@@ -563,6 +563,7 @@ CREATE FUNCTION ___myfunk(ex text) RETURNS NAME[] AS $$
563563
WHERE pg_catalog.pg_function_is_visible(p.oid)
564564
AND n.nspname NOT IN ('pg_catalog', 'information_schema')
565565
AND p.proname <> $1
566+
AND p.prokind <> 'p'
566567
);
567568
$$ LANGUAGE SQL;
568569

0 commit comments

Comments
 (0)