Debian Codegraph @

src/interfaces/ecpg/preproc/t/002_ecpg_err_warn_msg_informix.pl

raw
1
2 # Copyright (c) 2021-2025, PostgreSQL Global Development Group
3
4 use strict;
5 use warnings FATAL => 'all';
6 use PostgreSQL::Test::Utils;
7 use Test::More;
8
9 # Test that the ecpg command in INFORMIX mode correctly detects
10 # unsupported or disallowed statements in the input file and reports
11 # the appropriate error or warning messages.
12 command_checks_all(
13 [ 'ecpg', '-C', 'INFORMIX', 't/err_warn_msg_informix.pgc' ],
14 3,
15 [qr//],
16 [
17 qr/ERROR: AT option not allowed in CLOSE DATABASE statement/,
18 qr/ERROR: "database" cannot be used as cursor name in INFORMIX mode/
19 ],
20 'ecpg in INFORMIX mode with errors and warnings');
21
22 done_testing();