Skip to content

Commit a7b97ad

Browse files
committed
Provide default port configuration information to the documentation
~ remove old port changes + add port config information to the documentation
1 parent 29d6ddd commit a7b97ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Database/SQLSRV/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function connect(bool $persistent = false)
121121
unset($connection['UID'], $connection['PWD']);
122122
}
123123

124-
if (strpos($this->hostname, ',') === false && $this->port !== '' && (int) $this->port !== 1433) {
124+
if (strpos($this->hostname, ',') === false && $this->port !== '') {
125125
$this->hostname .= ', ' . $this->port;
126126
}
127127

user_guide_src/source/database/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Explanation of Values:
174174
**compress** Whether or not to use client compression (``MySQLi`` only).
175175
**strictOn** true/false (boolean) - Whether to force "Strict Mode" connections, good for ensuring strict SQL
176176
while developing an application (``MySQLi`` only).
177-
**port** The database port number.
177+
**port** The database port number - Empty for default port (or dynamic port with ``SQLSRV``)
178178
**foreignKeys** true/false (boolean) - Whether or not to enable Foreign Key constraint (``SQLite3`` only).
179179

180180
.. important:: SQLite3 Foreign Key constraint is disabled by default.

0 commit comments

Comments
 (0)