From: | Fujii Masao <fujii(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: ecpg: Add TAP test for the ecpg command. |
Date: | 2025-03-04 06:00:20 |
Message-ID: | E1tpLKG-000hRG-2s@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
ecpg: Add TAP test for the ecpg command.
This commit adds a TAP test to verify that the ecpg command correctly
detects unsupported or disallowed statements in input files and reports
the appropriate error or warning messages.
This test helps catch bugs like the one introduced in commit 3d009e45bd,
which broke ecpg's handling of unsupported COPY FROM STDIN statements,
later fixed by commit 94b914f601b.
Author: Ryo Kanbayashi <kanbayashi(dot)dev(at)gmail(dot)com>
Reviewed-by: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Discussion: https://postgr.es/m/CANOn0EzoMyxA1m-quDS1UeQUq6FNki6+GGiGucgr9tm2R78rKw@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/28f04984f0c240b76e61f00cd247554fbc850056
Modified Files
--------------
src/interfaces/ecpg/preproc/Makefile | 3 ++
src/interfaces/ecpg/preproc/meson.build | 13 +++++++
.../ecpg/preproc/t/001_ecpg_err_warn_msg.pl | 40 +++++++++++++++++++++
.../preproc/t/002_ecpg_err_warn_msg_informix.pl | 22 ++++++++++++
src/interfaces/ecpg/preproc/t/err_warn_msg.pgc | 42 ++++++++++++++++++++++
.../ecpg/preproc/t/err_warn_msg_informix.pgc | 18 ++++++++++
6 files changed, 138 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2025-03-04 06:37:05 | Re: pgsql: Track unpruned relids to avoid processing pruned relations |
Previous Message | Michael Paquier | 2025-03-04 05:12:39 | pgsql: Split pgstat_bestart() into three different routines |