diff --git a/lib/Doctrine/DBAL/Driver/PDOStatement.php b/lib/Doctrine/DBAL/Driver/PDOStatement.php index b6a8cb48c51..07b6365db9d 100644 --- a/lib/Doctrine/DBAL/Driver/PDOStatement.php +++ b/lib/Doctrine/DBAL/Driver/PDOStatement.php @@ -82,6 +82,20 @@ public function bindParam($column, &$variable, $type = \PDO::PARAM_STR, $length } } + /** + * {@inheritdoc} + */ + public function closeCursor() + { + try { + return parent::closeCursor(); + } catch (\PDOException $exception) { + // Exceptions not allowed by the interface. + // In case driver implementations do not adhere to the interface, silence exceptions here. + return true; + } + } + /** * {@inheritdoc} */