From a2dbe1378a97c04c10bfc7ef5caed551967a21b0 Mon Sep 17 00:00:00 2001 From: Sergey Linnik Date: Thu, 22 Jan 2015 12:28:16 +0300 Subject: [PATCH] Add query interpolation in PostgreSQL and SQLite plugin. Closes #757 --- PHPCI/Plugin/Pgsql.php | 2 +- PHPCI/Plugin/Sqlite.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PHPCI/Plugin/Pgsql.php b/PHPCI/Plugin/Pgsql.php index 9a5f630c..9d0f924d 100644 --- a/PHPCI/Plugin/Pgsql.php +++ b/PHPCI/Plugin/Pgsql.php @@ -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()); diff --git a/PHPCI/Plugin/Sqlite.php b/PHPCI/Plugin/Sqlite.php index 1ffdcc88..f80ece3d 100644 --- a/PHPCI/Plugin/Sqlite.php +++ b/PHPCI/Plugin/Sqlite.php @@ -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());