summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authortoopay <toopay@taufanaditya.com>2011-12-08 14:42:41 +0100
committertoopay <toopay@taufanaditya.com>2011-12-08 14:42:41 +0100
commit59dbcda901f45c5183e976a0a2da7c7459294d05 (patch)
treec3197e7a31d2a4b6f5d3a4bed962ea83a1b54728 /system/database
parent96b41c6dc9a174d9ffa3177f9479c2ecb11dfc72 (diff)
Exception for sqlite
Diffstat (limited to 'system/database')
-rw-r--r--system/database/drivers/pdo/pdo_driver.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php
index 18a508b15..457cf714a 100644
--- a/system/database/drivers/pdo/pdo_driver.php
+++ b/system/database/drivers/pdo/pdo_driver.php
@@ -90,7 +90,10 @@ class CI_DB_pdo_driver extends CI_DB {
$this->_like_escape_chr = '!';
}
- $this->hostname .= ";dbname=".$this->database;
+ if (strpos($this->hostname, 'sqlite') === FALSE)
+ {
+ $this->hostname .= ";dbname=".$this->database;
+ }
$this->trans_enabled = FALSE;