summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/database/drivers/mssql/mssql_driver.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/system/database/drivers/mssql/mssql_driver.php b/system/database/drivers/mssql/mssql_driver.php
index 6130bf4cb..72dc263f3 100644
--- a/system/database/drivers/mssql/mssql_driver.php
+++ b/system/database/drivers/mssql/mssql_driver.php
@@ -50,6 +50,11 @@ class CI_DB_mssql_driver extends CI_DB {
*/
function db_connect()
{
+ if ($this->port != '')
+ {
+ $this->hostname .= ','.$this->port;
+ }
+
return @mssql_connect($this->hostname, $this->username, $this->password);
}
@@ -63,6 +68,11 @@ class CI_DB_mssql_driver extends CI_DB {
*/
function db_pconnect()
{
+ if ($this->port != '')
+ {
+ $this->hostname .= ','.$this->port;
+ }
+
return @mssql_pconnect($this->hostname, $this->username, $this->password);
}