Skip to content

Commit

Permalink
There are issue with the mysqli driver and that method that silence t…
Browse files Browse the repository at this point in the history
…he erros

It also prevented users to use the results of the sql calls made
  • Loading branch information
mikeSimonson committed Dec 14, 2015
1 parent f7d138d commit 0af6e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Migrations/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ private function executeRegisteredSql($dryRun = false, $timeAllQueries = false)

if ( ! isset($this->params[$key])) {
$this->outputWriter->write(' <comment>-></comment> ' . $query);
$this->connection->exec($query);
$this->connection->executeQuery($query);
} else {
$this->outputWriter->write(sprintf(' <comment>-</comment> %s (with parameters)', $query));
$this->connection->executeQuery($query, $this->params[$key], $this->types[$key]);
Expand Down

0 comments on commit 0af6e6e

Please sign in to comment.