ecpg: Restore detection of unsupported COPY FROM STDIN.
authorFujii Masao <[email protected]>
Tue, 14 Jan 2025 16:24:24 +0000 (01:24 +0900)
committerFujii Masao <[email protected]>
Tue, 14 Jan 2025 16:25:52 +0000 (01:25 +0900)
commit226c9048d734ba13ef88c04a7405a67ad8014a7d
tree0ec73c48d7a66f38baa909b7ee15f07567bcd9b2
parent332023e2d032743ce487b47f6d5f43111ca3fc0c
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