]> git.ipfire.org Git - thirdparty/postgresql.git/commit
ecpg: Restore detection of unsupported COPY FROM STDIN.
authorFujii Masao <fujii@postgresql.org>
Tue, 14 Jan 2025 16:24:24 +0000 (01:24 +0900)
committerFujii Masao <fujii@postgresql.org>
Tue, 14 Jan 2025 16:25:19 +0000 (01:25 +0900)
commit71ef47cf0f20e680319e866220e05c208b3e2bd8
tree3d8783fe0cb3ab50a751fc9fdb272add5b288aa3
parentce7c406f0f8d562e856d43a7e1feb82043f772bc
ecpg: Restore detection of unsupported COPY FROM STDIN.

The ecpg command includes code to warn about unsupported COPY FROM STDIN
statements in input files. However, since commit 3d009e45bd,
this functionality has been broken due to a bug introduced in that commit,
causing ecpg to fail to detect the statement.

This commit resolves the issue, restoring ecpg's ability to detect
COPY FROM STDIN and issue a warning as intended.

Back-patch to all supported versions.

Author: Ryo Kanbayashi
Reviewed-by: Hayato Kuroda, Tom Lane
Discussion: https://postgr.es/m/CANOn0Ez_t5uDCUEV8c1YORMisJiU5wu681eEVZzgKwOeiKhkqQ@mail.gmail.com
src/interfaces/ecpg/preproc/ecpg.addons