Close the cursor after the affected count has been extracted.

This commit is contained in:
Thomas Müller 2015-02-23 17:17:20 +01:00
parent f54cd14c7e
commit 5bdf42a925
1 changed files with 2 additions and 1 deletions

View File

@ -79,8 +79,9 @@ class OC_DB_StatementWrapper {
return false;
}
if ($this->isManipulation) {
$count = $this->statement->rowCount();
$this->statement->closeCursor();
return $this->statement->rowCount();
return $count;
} else {
return $this;
}