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;
|
return false;
|
||||||
}
|
}
|
||||||
if ($this->isManipulation) {
|
if ($this->isManipulation) {
|
||||||
|
$count = $this->statement->rowCount();
|
||||||
$this->statement->closeCursor();
|
$this->statement->closeCursor();
|
||||||
return $this->statement->rowCount();
|
return $count;
|
||||||
} else {
|
} else {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue