summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-24 09:20:59 +0100
committerLukas Reschke <lukas@owncloud.com>2015-02-24 09:20:59 +0100
commit8bd3d5551785e4257f8b4aa9a4a14064bde95eff (patch)
treea8e56d568df3d035ab1b2d7df13b8525a60807b8 /lib
parentcdb4cfd939d477b8803765ba142e4428e8971dc8 (diff)
parent5bdf42a92568d2f3c581918cc6264257a0e99b44 (diff)
downloadnextcloud-server-8bd3d5551785e4257f8b4aa9a4a14064bde95eff.tar.gz
nextcloud-server-8bd3d5551785e4257f8b4aa9a4a14064bde95eff.zip
Merge pull request #14442 from owncloud/fix-oracle-ci-master
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;
}