Skip to content

Commit

Permalink
Provide default port configuration information to the documentation
Browse files Browse the repository at this point in the history
~ remove old port changes
+ add port config information to the documentation
  • Loading branch information
puschie286 committed Jun 28, 2023
1 parent 29d6ddd commit a7b97ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/Database/SQLSRV/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function connect(bool $persistent = false)
unset($connection['UID'], $connection['PWD']);
}

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

Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/database/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Explanation of Values:
**compress** Whether or not to use client compression (``MySQLi`` only).
**strictOn** true/false (boolean) - Whether to force "Strict Mode" connections, good for ensuring strict SQL
while developing an application (``MySQLi`` only).
**port** The database port number.
**port** The database port number - Empty for default port (or dynamic port with ``SQLSRV``)
**foreignKeys** true/false (boolean) - Whether or not to enable Foreign Key constraint (``SQLite3`` only).

.. important:: SQLite3 Foreign Key constraint is disabled by default.
Expand Down

0 comments on commit a7b97ad

Please sign in to comment.