summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-07-05 21:11:42 +0200
committerAndrey Andreev <narf@bofh.bg>2012-07-05 21:11:42 +0200
commitbd6116a63899c5efcf35e175b3db14b1f05c60a9 (patch)
tree30f8c8ac46877143919340891072f3efc62f03c9 /system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
parentd74e027614fd1d5209180800e97bb8a01e5d4acf (diff)
Replace localhost with 127.0.0.1 and remove the PDO::ERRMODE_SILENT option - it's the default anyway
Diffstat (limited to 'system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php')
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php b/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
index 7cebae9e6..f125b8f50 100644
--- a/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
+++ b/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
@@ -60,7 +60,7 @@ class CI_DB_pdo_sqlsrv_driver extends CI_DB_pdo_driver {
if (empty($this->dsn))
{
- $this->dsn = 'sqlsrv:Server='.(empty($this->hostname) ? 'localhost' : $this->hostname);
+ $this->dsn = 'sqlsrv:Server='.(empty($this->hostname) ? '127.0.0.1' : $this->hostname);
empty($this->port) OR $this->dsn .= ','.$this->port;
empty($this->database) OR $this->dsn .= ';Database='.$this->database;