Skip to content

Commit 04d2b7b

Browse files
committed
Merge pull request #32 from janedbal/sqlite-journal-persistence
SQLite: Removed connection persistence.
2 parents c96e016 + 04bfffd commit 04d2b7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Caching/Storages/SQLiteJournal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct($path = ':memory:')
2929
throw new Nette\NotSupportedException('SQLiteJournal requires PHP extension pdo_sqlite which is not loaded.');
3030
}
3131

32-
$this->pdo = new \PDO('sqlite:' . $path, NULL, NULL, [\PDO::ATTR_PERSISTENT => TRUE]);
32+
$this->pdo = new \PDO('sqlite:' . $path);
3333
$this->pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
3434
$this->pdo->exec('
3535
PRAGMA foreign_keys = ON;

src/Caching/Storages/SQLiteStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SQLiteStorage extends Nette\Object implements Nette\Caching\IStorage
2222

2323
public function __construct($path = ':memory:')
2424
{
25-
$this->pdo = new \PDO('sqlite:' . $path, NULL, NULL, [\PDO::ATTR_PERSISTENT => TRUE]);
25+
$this->pdo = new \PDO('sqlite:' . $path);
2626
$this->pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
2727
$this->pdo->exec('
2828
PRAGMA foreign_keys = ON;

0 commit comments

Comments
 (0)