Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 975368e

Browse files
committed
Avoid function name conflict when plpgsql and rangefuncs regression tests
execute in parallel. Spotted by Peter.
1 parent e6a8eba commit 975368e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/test/regress/expected/plpgsql.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,25 +1836,25 @@ select * from f1(42);
18361836
(2 rows)
18371837

18381838
drop function f1(int);
1839-
create function dup(in i anyelement, out j anyelement, out k anyarray) as $$
1839+
create function duplic(in i anyelement, out j anyelement, out k anyarray) as $$
18401840
begin
18411841
j := i;
18421842
k := array[j,j];
18431843
return;
18441844
end$$ language plpgsql;
1845-
select * from dup(42);
1845+
select * from duplic(42);
18461846
j | k
18471847
----+---------
18481848
42 | {42,42}
18491849
(1 row)
18501850

1851-
select * from dup('foo'::text);
1851+
select * from duplic('foo'::text);
18521852
j | k
18531853
-----+-----------
18541854
foo | {foo,foo}
18551855
(1 row)
18561856

1857-
drop function dup(anyelement);
1857+
drop function duplic(anyelement);
18581858
--
18591859
-- test PERFORM
18601860
--

src/test/regress/sql/plpgsql.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,17 +1629,17 @@ select * from f1(42);
16291629

16301630
drop function f1(int);
16311631

1632-
create function dup(in i anyelement, out j anyelement, out k anyarray) as $$
1632+
create function duplic(in i anyelement, out j anyelement, out k anyarray) as $$
16331633
begin
16341634
j := i;
16351635
k := array[j,j];
16361636
return;
16371637
end$$ language plpgsql;
16381638

1639-
select * from dup(42);
1640-
select * from dup('foo'::text);
1639+
select * from duplic(42);
1640+
select * from duplic('foo'::text);
16411641

1642-
drop function dup(anyelement);
1642+
drop function duplic(anyelement);
16431643

16441644
--
16451645
-- test PERFORM

0 commit comments

Comments
 (0)