File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
user_guide_src/source/changelogs Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,9 @@ private function convertDSN()
149
149
*/
150
150
public function reconnect ()
151
151
{
152
- if (pg_ping ($ this ->connID ) === false ) {
153
- $ this ->connID = false ;
152
+ if ($ this ->connID === false || pg_ping ($ this ->connID ) === false ) {
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,7 @@ Bugs Fixed
41
41
42
42
- **Validation: ** Fixed a bug where complex language strings were not properly handled.
43
43
- **CURLRequest: ** Added support for handling proxy responses using HTTP versions other than 1.1.
44
+ - **Database: ** Fixed a bug that caused ``Postgre\Connection::reconnect() `` method to throw an error when the connection had not yet been established.
44
45
45
46
See the repo's
46
47
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md >`_
You can’t perform that action at this time.
0 commit comments