forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit686db12
committed
Fix an issue in PostgreSQL::Test::Cluster:psql()
Due to the commitc538592 which made all Perl warnings to fatal, useof PostgreSQL::Test::Cluster:psql() and safe_psql() with timeoutstarted 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, thatis, the whole function returns undef on timeout, which is usefullydifferent from returning 0.Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/06f899fd-1826-05ab-42d6-adeb1fd5e200%40eisentraut.org1 parent0ae3b46 commit686db12
1 file changed
+9
-6
lines changedLines changed: 9 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2012 | 2012 |
| |
2013 | 2013 |
| |
2014 | 2014 |
| |
2015 |
| - | |
2016 |
| - | |
2017 |
| - | |
2018 |
| - | |
2019 |
| - | |
2020 |
| - | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
2021 | 2024 |
| |
2022 | 2025 |
| |
2023 | 2026 |
| |
|
0 commit comments
Comments
(0)