summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-23 17:17:20 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-02-23 17:17:20 +0100
commit5bdf42a92568d2f3c581918cc6264257a0e99b44 (patch)
tree920a3676b860bffd61c1e5435564e98d1023fd9d /lib
parentf54cd14c7e7ea3a8e63ce35b3ac2c3ff5db984f5 (diff)
downloadnextcloud-server-5bdf42a92568d2f3c581918cc6264257a0e99b44.tar.gz
nextcloud-server-5bdf42a92568d2f3c581918cc6264257a0e99b44.zip
Close the cursor after the affected count has been extracted.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/db/statementwrapper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/db/statementwrapper.php b/lib/private/db/statementwrapper.php
index 8d704f0bbe7..14b68d60f43 100644
--- a/lib/private/db/statementwrapper.php
+++ b/lib/private/db/statementwrapper.php
@@ -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;
}