Skip to content

Commit 3876bdd

Browse files
committed
fix: rebase.
1 parent ccef02b commit 3876bdd

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
@@ -40,6 +40,7 @@ Bugs Fixed
4040
- **Routing:** Fixed a TypeError in `str_replace()` when `Routing::$translateURIDashes` is set to `true` and a route is defined using a closure.
4141

4242
- **Validation:** Fixed a bug where complex language strings were not properly handled.
43+
- **PostgreSQL Connection:** Fixed bug that PostgreSQL cannot reconnect the database with ``reconnect()`` method.
4344

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

0 commit comments

Comments
 (0)