commit | 59dbcda901f45c5183e976a0a2da7c7459294d05 | [log] [tgz] |
---|---|---|
author | toopay <toopay@taufanaditya.com> | Thu Dec 08 20:42:41 2011 +0700 |
committer | toopay <toopay@taufanaditya.com> | Thu Dec 08 20:42:41 2011 +0700 |
tree | c3197e7a31d2a4b6f5d3a4bed962ea83a1b54728 | |
parent | 96b41c6dc9a174d9ffa3177f9479c2ecb11dfc72 [diff] [blame] |
Exception for sqlite
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php index 18a508b..457cf71 100644 --- a/system/database/drivers/pdo/pdo_driver.php +++ b/system/database/drivers/pdo/pdo_driver.php
@@ -90,7 +90,10 @@ $this->_like_escape_chr = '!'; } - $this->hostname .= ";dbname=".$this->database; + if (strpos($this->hostname, 'sqlite') === FALSE) + { + $this->hostname .= ";dbname=".$this->database; + } $this->trans_enabled = FALSE;