Commit 9d633dad authored by Marco Pivetta's avatar Marco Pivetta

Merge branch 'fix/#2651-close-cursor-should-not-throw-exceptions-in-pdo-sqlsrv' into 2.5

Backport #2651 to 2.5.x
parents 61330925 7f9e8c27
......@@ -82,6 +82,20 @@ class PDOStatement extends \PDOStatement implements Statement
}
}
/**
* {@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}
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment