mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Merge pull request #6036 from iRedds/fix-sqlsrv-port
Bug: The SQLSRV driver ignores the port value from the config.
This commit is contained in:
commit
7b42a1230e
@ -120,6 +120,10 @@ class Connection extends BaseConnection
|
|||||||
unset($connection['UID'], $connection['PWD']);
|
unset($connection['UID'], $connection['PWD']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strpos($this->hostname, ',') === false && $this->port !== '') {
|
||||||
|
$this->hostname .= ', ' . $this->port;
|
||||||
|
}
|
||||||
|
|
||||||
sqlsrv_configure('WarningsReturnAsErrors', 0);
|
sqlsrv_configure('WarningsReturnAsErrors', 0);
|
||||||
$this->connID = sqlsrv_connect($this->hostname, $connection);
|
$this->connID = sqlsrv_connect($this->hostname, $connection);
|
||||||
|
|
||||||
|
@ -119,5 +119,6 @@ Deprecations
|
|||||||
|
|
||||||
Bugs Fixed
|
Bugs Fixed
|
||||||
**********
|
**********
|
||||||
|
- The SQLSRV driver ignores the port value from the config.
|
||||||
|
|
||||||
See the repo's `CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_ for a complete list of bugs fixed.
|
See the repo's `CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_ for a complete list of bugs fixed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user