File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
user_guide_src/source/changelogs Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,10 @@ public function connect(bool $persistent = false)
120120 unset($ connection ['UID ' ], $ connection ['PWD ' ]);
121121 }
122122
123+ if (strpos ($ this ->hostname , ', ' ) === false ) {
124+ $ this ->hostname = $ this ->port !== '' ? "{$ this ->hostname }, {$ this ->port }" : $ this ->hostname ;
125+ }
126+
123127 sqlsrv_configure ('WarningsReturnAsErrors ' , 0 );
124128 $ this ->connID = sqlsrv_connect ($ this ->hostname , $ connection );
125129
Original file line number Diff line number Diff line change @@ -119,5 +119,6 @@ Deprecations
119119
120120Bugs Fixed
121121**********
122+ - The SQLSRV driver ignores the port value from the config.
122123
123124See the repo's `CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md >`_ for a complete list of bugs fixed.
You can’t perform that action at this time.
0 commit comments