Commit dbd2a100 authored by Benjamin Eberlei's avatar Benjamin Eberlei

DDC-217 - Fix bug with not closing delegate cursor in result cache statement.

parent e8f87a0b
......@@ -126,6 +126,7 @@ class ResultCacheStatement implements ResultStatement
*/
public function closeCursor()
{
$this->statement->closeCursor();
if ($this->emptied && $this->data) {
$data = $this->resultCache->fetch($this->cacheKey);
if (!$data) {
......
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