Merge pull request #451 from paolomainardi/patch-1
Fix sqlite PDO namespacing
This commit is contained in:
commit
73ee8b161e
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class Sqlite extends \Flake\Core\Database {
|
|||
public function __construct($sDbPath) {
|
||||
$this->sDbPath = $sDbPath;
|
||||
$this->oDb = new \PDO('sqlite:' . $this->sDbPath);
|
||||
$this->oDb->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
$this->oDb->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
|
||||
}
|
||||
|
||||
# Taken from http://dev.kohanaframework.org/issues/2985
|
||||
|
|
Loading…
Add table
Reference in a new issue