diff --git a/lib/Doctrine/DBAL/Migrations/Version.php b/lib/Doctrine/DBAL/Migrations/Version.php index 7df7dc8a45..828660f13a 100644 --- a/lib/Doctrine/DBAL/Migrations/Version.php +++ b/lib/Doctrine/DBAL/Migrations/Version.php @@ -379,7 +379,7 @@ private function executeRegisteredSql($dryRun = false, $timeAllQueries = false) if ( ! isset($this->params[$key])) { $this->outputWriter->write(' -> ' . $query); - $this->connection->exec($query); + $this->connection->executeQuery($query); } else { $this->outputWriter->write(sprintf(' - %s (with parameters)', $query)); $this->connection->executeQuery($query, $this->params[$key], $this->types[$key]);