Close the cursor after the affected count has been extracted.
This commit is contained in:
parent
f54cd14c7e
commit
5bdf42a925
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue