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()
150
150
public function reconnect ()
151
151
{
152
152
if ($ this ->connID === false || pg_ping ($ this ->connID ) === false ) {
153
- $ this ->connect ();
153
+ $ this ->close ();
154
+ $ this ->initialize ();
154
155
}
155
156
}
156
157
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ Bugs Fixed
41
41
42
42
- **Routing: ** Fixed a TypeError in `str_replace() ` when `Routing::$translateURIDashes ` is set to `true ` and a route is defined using a closure.
43
43
44
+ - **PostgreSQL Connection: ** Fixed bug that PostgreSQL cannot reconnect the database with ``reconnect() `` method.
45
+
44
46
See the repo's
45
47
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md >`_
46
48
for a complete list of bugs fixed.
You can’t perform that action at this time.
0 commit comments