File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
user_guide_src/source/changelogs Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ Bugs Fixed
4141
4242- **Routing: ** Fixed a TypeError in `str_replace() ` when `Routing::$translateURIDashes ` is set to `true ` and a route is defined using a closure.
4343
44+ - **PostgreSQL Connection: ** Fixed bug that PostgreSQL cannot reconnect the database with ``reconnect() `` method.
45+
4446See the repo's
4547`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md >`_
4648for a complete list of bugs fixed.
You can’t perform that action at this time.
0 commit comments