Commit b6277715 authored by Marco Pivetta's avatar Marco Pivetta Committed by GitHub

Merge pull request #2651 from deeky666/fix-pdo_sqlsrv-close-cursor

Fix closing statement cursor on pdo_sqlsrv if not executed yet
parents f5dcc4cf 2bb4c37c
...@@ -82,6 +82,20 @@ class PDOStatement extends \PDOStatement implements Statement ...@@ -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} * {@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