Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 943b447

Browse files
committed
Fix new COPY test of PL/pgSQL with VPATH builds
The buildfarm has turned red after 1858b10 because VPATH builds need to use "@abs_srcdir@" and not "@abs_builddir@" for paths coming directly from the source tree. The input file of the new test got that right, but not the output file. Per complaints from several buildfarm animals, including desmoxytes and culicidae. I have also reproduced the error by myself.
1 parent 1858b10 commit 943b447

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pl/plpgsql/src/output/plpgsql_copy.source

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ CONTEXT: PL/pgSQL function inline_code_block line 3 at EXECUTE
3232
-- COPY FROM
3333
DO LANGUAGE plpgsql $$
3434
BEGIN
35-
COPY copy1 FROM '@abs_builddir@/data/copy1.data';
35+
COPY copy1 FROM '@abs_srcdir@/data/copy1.data';
3636
END;
3737
$$;
3838
SELECT * FROM copy1 ORDER BY 1;
@@ -46,7 +46,7 @@ SELECT * FROM copy1 ORDER BY 1;
4646
TRUNCATE copy1;
4747
DO LANGUAGE plpgsql $$
4848
BEGIN
49-
EXECUTE 'COPY copy1 FROM ''@abs_builddir@/data/copy1.data''';
49+
EXECUTE 'COPY copy1 FROM ''@abs_srcdir@/data/copy1.data''';
5050
END;
5151
$$;
5252
SELECT * FROM copy1 ORDER BY 1;

0 commit comments

Comments
 (0)