Merge pull request #14442 from owncloud/fix-oracle-ci-master

Close the cursor after the affected count has been extracted.
This commit is contained in:
Lukas Reschke 2015-02-24 09:20:59 +01:00
commit 8bd3d55517
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;
}