]> source.dussan.org Git - nextcloud-server.git/commitdiff
Deprecate OC_DB::prepare and OC_DB::executeAudited as they leak cursors 23929/head
authorJoas Schilling <coding@schilljs.com>
Fri, 6 Nov 2020 09:37:37 +0000 (10:37 +0100)
committerJoas Schilling <coding@schilljs.com>
Fri, 6 Nov 2020 09:37:37 +0000 (10:37 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/legacy/OC_DB.php

index 50dab74abb9cfa75325a8cf17dec329dad1337db..b12ecd11100d1f19c39d9a5190411549b29499b0 100644 (file)
@@ -55,6 +55,7 @@ class OC_DB {
         * @param bool|null $isManipulation
         * @throws \OC\DatabaseException
         * @return OC_DB_StatementWrapper prepared SQL query
+        * @depreacted 21.0.0 Please use \OCP\IDBConnection::getQueryBuilder() instead
         *
         * SQL query via Doctrine prepare(), needs to be execute()'d!
         */
@@ -112,6 +113,7 @@ class OC_DB {
         * @param array $parameters
         * @return OC_DB_StatementWrapper
         * @throws \OC\DatabaseException
+        * @depreacted 21.0.0 Please use \OCP\IDBConnection::getQueryBuilder() instead
         */
        public static function executeAudited($stmt, array $parameters = []) {
                if (is_string($stmt)) {