Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/lib/php/Test/TestLiteDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ function __construct($dbFileName = null)

$sqlite3Connection = new SQLite3($this->dbFileName, SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE);

$container->get('db.manager')->setDriver(new SqliteE($sqlite3Connection));
$sqliteDriver = new SqliteE($sqlite3Connection);
$container->get('db.manager')->setDriver($sqliteDriver);
$this->dbManager = $container->get('db.manager');
}

Expand Down Expand Up @@ -115,4 +116,4 @@ protected function queryConverter($sql)
$sql = str_replace(' true)', " 'true')", $sql);
return $sql;
}
}
}
3 changes: 2 additions & 1 deletion src/lib/php/Test/TestPgDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ function __construct($dbName = null, $sysConf = null)
$this->logFileName = dirname(dirname(dirname(dirname(dirname(__FILE__))))) . 'db.pg.log';
$logger->pushHandler(new StreamHandler($this->logFileName, Logger::DEBUG));

$container->get('db.manager')->setDriver(new Postgres($this->connection));
$postgresDriver = new Postgres($this->connection);
$container->get('db.manager')->setDriver($postgresDriver);
$this->dbManager = $container->get('db.manager');
$this->dbManager->queryOnce("DEALLOCATE ALL");
$this->dropAllTables();
Expand Down