Skip to content

Commit ace329f

Browse files
ping-yeepaulbalandan
authored andcommitted
fix: rebase.
1 parent 99b1031 commit ace329f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

system/Database/Postgre/Connection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ private function convertDSN()
150150
public function reconnect()
151151
{
152152
if ($this->connID === false || pg_ping($this->connID) === false) {
153-
$this->connect();
153+
$this->close();
154+
$this->initialize();
154155
}
155156
}
156157

user_guide_src/source/changelogs/v4.5.6.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Bugs Fixed
4141

4242
- **Validation:** Fixed a bug where complex language strings were not properly handled.
4343
- **CURLRequest:** Added support for handling proxy responses using HTTP versions other than 1.1.
44+
- **PostgreSQL Connection:** Fixed bug that PostgreSQL cannot reconnect the database with ``reconnect()`` method.
4445

4546
See the repo's
4647
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_

0 commit comments

Comments
 (0)