aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-01-18 08:46:42 +0100
committerPeter Eisentraut <peter@eisentraut.org>2024-01-18 08:46:42 +0100
commit686db12de3a01222de6bce56f40f4fb9259f7b37 (patch)
tree287a62a79df7a7354ea6018c6367cc90614a28af /src/backend/tcop/postgres.c
parent0ae3b466210316ebedbe123b64b46ac2dc1fc04f (diff)
downloadpostgresql-686db12de3a01222de6bce56f40f4fb9259f7b37.tar.gz
postgresql-686db12de3a01222de6bce56f40f4fb9259f7b37.zip
Fix an issue in PostgreSQL::Test::Cluster:psql()
Due to the commit c5385929 which made all Perl warnings to fatal, use of PostgreSQL::Test::Cluster:psql() and safe_psql() with timeout started to fail with the following error: Use of uninitialized value $ret in bitwise and (&) at ..src/test/perl/PostgreSQL/Test/Cluster.pm line 2015. Fix that by placing $ret conversion code in psql() in an if (defined $ret) block. With this change, the behavior of psql() becomes same as before, that is, the whole function returns undef on timeout, which is usefully different from returning 0. Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/06f899fd-1826-05ab-42d6-adeb1fd5e200%40eisentraut.org
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions