Add query interpolation in PostgreSQL and SQLite plugin.

Closes #757
This commit is contained in:
Sergey Linnik 2015-01-22 12:28:16 +03:00 committed by Dan Cryer
commit 96b1df55b0
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ class Pgsql implements \PHPCI\Plugin
$pdo = new PDO('pgsql:host=' . $this->host, $this->user, $this->pass, $opts);
foreach ($this->queries as $query) {
$pdo->query($query);
$pdo->query($this->phpci->interpolate($query));
}
} catch (\Exception $ex) {
$this->phpci->logFailure($ex->getMessage());

View file

@ -70,7 +70,7 @@ class Sqlite implements \PHPCI\Plugin
$pdo = new PDO('sqlite:' . $this->path, $opts);
foreach ($this->queries as $query) {
$pdo->query($query);
$pdo->query($this->phpci->interpolate($query));
}
} catch (\Exception $ex) {
$this->phpci->logFailure($ex->getMessage());