pgsql: ecpg: Add TAP test for the ecpg command.

Поиск
Список
Период
Сортировка
Искать

pgsql: ecpg: Add TAP test for the ecpg command.

От:
Fujii Masao <fujii@postgresql.org>
Дата:
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 
Reviewed-by: Fujii Masao 
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(+)

FAQ