Skip to content

Commit

Permalink
Merge pull request bcit-ci#752 from toopay/pdo_sqlite
Browse files Browse the repository at this point in the history
Fix for PDO driver, exception for sqlite in DSN spec
  • Loading branch information
ericlbarnes committed Dec 15, 2011
2 parents 399cca9 + 59dbcda commit c10144c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion system/database/drivers/pdo/pdo_driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ function __construct($params)
$this->_like_escape_chr = '!';
}

$this->hostname .= ";dbname=".$this->database;
if (strpos($this->hostname, 'sqlite') === FALSE)
{
$this->hostname .= ";dbname=".$this->database;
}

$this->trans_enabled = FALSE;

Expand Down

0 comments on commit c10144c

Please sign in to comment.