]> git.ipfire.org Git - thirdparty/postgresql.git/commit
psql: Fix exit status when query is canceled
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 22 Oct 2022 07:41:38 +0000 (09:41 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 22 Oct 2022 07:41:38 +0000 (09:41 +0200)
commit4a6de748d3429cfa081942c46411d62341867bfd
tree13e3ab6cc30345cd75ac8b7d741a26273c9290f0
parent5c013e620c911d728f653785843eb3c272c43538
psql: Fix exit status when query is canceled

Because of a small thinko in 7844c9918a43b494adde3575891d217a37062378,
psql -c would exit successfully when a query is canceled.  Fix this so
that it exits with a nonzero status, just like for all other errors.
src/bin/psql/common.c