summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo/pdo_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-25 14:04:45 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-25 14:04:45 +0200
commite21511e12faf2518d6f54cb0a7a7c66d935e4f0f (patch)
treed7478375c7a1f540525d751db315911c1f3149ee /system/database/drivers/pdo/pdo_driver.php
parent6b4bffab404f7fb6a19195b0a968cf8500cb30b3 (diff)
Add pdo_informix subdriver
Diffstat (limited to 'system/database/drivers/pdo/pdo_driver.php')
-rw-r--r--system/database/drivers/pdo/pdo_driver.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php
index 521bdfd9f..eada020ae 100644
--- a/system/database/drivers/pdo/pdo_driver.php
+++ b/system/database/drivers/pdo/pdo_driver.php
@@ -131,14 +131,8 @@ class CI_DB_pdo_driver extends CI_DB {
// $dsn = 'pdo://username:password@hostname:port/database?subdriver=pgsql';
$this->dsn = $this->subdriver.':';
- // Add hostname to the DSN for databases that need it
- if ( ! empty($this->hostname) && strpos($this->hostname, ':') === FALSE && $this->subdriver === 'informix')
- {
- $this->dsn .= 'host='.$this->hostname.';';
- }
-
// Add a port to the DSN for databases that can use it
- if ( ! empty($this->port) && in_array($this->subdriver, array('informix', 'ibm'), TRUE))
+ if ( ! empty($this->port) && $this->subdriver === 'ibm')
{
$this->dsn .= 'port='.$this->port.';';
}