Commit 7f9e8c27 authored by Steve Müller's avatar Steve Müller Committed by Marco Pivetta

fix closing statement cursor on pdo_sqlsrv if not executed yet

parent 61330925
......@@ -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