summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_DB_StatementWrapper.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-11-05 10:50:53 +0100
committerJoas Schilling <coding@schilljs.com>2020-11-09 12:28:17 +0100
commit8027dcbc6f6b1653f5ebcf04b1862ac1e1f51d32 (patch)
tree1bf182f477bfbead7b75ae14a8cd0fce5bb38ada /lib/private/legacy/OC_DB_StatementWrapper.php
parent72545ffd07a07f142c9c18b3e4afc9ae1b5c8da2 (diff)
downloadnextcloud-server-8027dcbc6f6b1653f5ebcf04b1862ac1e1f51d32.tar.gz
nextcloud-server-8027dcbc6f6b1653f5ebcf04b1862ac1e1f51d32.zip
Don't leave cursors open when tests fail
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/legacy/OC_DB_StatementWrapper.php')
-rw-r--r--lib/private/legacy/OC_DB_StatementWrapper.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/legacy/OC_DB_StatementWrapper.php b/lib/private/legacy/OC_DB_StatementWrapper.php
index 668e97c5650..64806cd205d 100644
--- a/lib/private/legacy/OC_DB_StatementWrapper.php
+++ b/lib/private/legacy/OC_DB_StatementWrapper.php
@@ -105,6 +105,15 @@ class OC_DB_StatementWrapper {
}
/**
+ * Closes the cursor, enabling the statement to be executed again.
+ *
+ * @deprecated Use Result::free() instead.
+ */
+ public function closeCursor(): void {
+ $this->statement->closeCursor();
+ }
+
+ /**
* Binds a PHP variable to a corresponding named or question mark placeholder in the
* SQL statement that was use to prepare the statement.
*