mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
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.
This commit is contained in:
parent
1858b105b0
commit
943b447d30
@ -32,7 +32,7 @@ CONTEXT: PL/pgSQL function inline_code_block line 3 at EXECUTE
|
|||||||
-- COPY FROM
|
-- COPY FROM
|
||||||
DO LANGUAGE plpgsql $$
|
DO LANGUAGE plpgsql $$
|
||||||
BEGIN
|
BEGIN
|
||||||
COPY copy1 FROM '@abs_builddir@/data/copy1.data';
|
COPY copy1 FROM '@abs_srcdir@/data/copy1.data';
|
||||||
END;
|
END;
|
||||||
$$;
|
$$;
|
||||||
SELECT * FROM copy1 ORDER BY 1;
|
SELECT * FROM copy1 ORDER BY 1;
|
||||||
@ -46,7 +46,7 @@ SELECT * FROM copy1 ORDER BY 1;
|
|||||||
TRUNCATE copy1;
|
TRUNCATE copy1;
|
||||||
DO LANGUAGE plpgsql $$
|
DO LANGUAGE plpgsql $$
|
||||||
BEGIN
|
BEGIN
|
||||||
EXECUTE 'COPY copy1 FROM ''@abs_builddir@/data/copy1.data''';
|
EXECUTE 'COPY copy1 FROM ''@abs_srcdir@/data/copy1.data''';
|
||||||
END;
|
END;
|
||||||
$$;
|
$$;
|
||||||
SELECT * FROM copy1 ORDER BY 1;
|
SELECT * FROM copy1 ORDER BY 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user