diff options
author | toopay <toopay@taufanaditya.com> | 2011-12-08 14:42:41 +0100 |
---|---|---|
committer | toopay <toopay@taufanaditya.com> | 2011-12-08 14:42:41 +0100 |
commit | 59dbcda901f45c5183e976a0a2da7c7459294d05 (patch) | |
tree | c3197e7a31d2a4b6f5d3a4bed962ea83a1b54728 /system/database/drivers | |
parent | 96b41c6dc9a174d9ffa3177f9479c2ecb11dfc72 (diff) |
Exception for sqlite
Diffstat (limited to 'system/database/drivers')
-rw-r--r-- | system/database/drivers/pdo/pdo_driver.php | 5 |
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; |