]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use statements wrapper in \OCP\IDB
authorRobin Appelman <icewind@owncloud.com>
Mon, 20 Oct 2014 13:09:00 +0000 (15:09 +0200)
committerRobin Appelman <icewind@owncloud.com>
Wed, 22 Oct 2014 10:29:53 +0000 (12:29 +0200)
lib/private/appframework/db/db.php

index 91572ad9e5a4298c599b45c0c8f0ba4699275646..fb30505d05a9d4499a4a89a884191cccd77afcad 100644 (file)
@@ -51,7 +51,9 @@ class Db implements IDb {
         * @return \OC_DB_StatementWrapper prepared SQL query
         */
        public function prepareQuery($sql, $limit = null, $offset = null) {
-               return $this->connection->prepare($sql, $limit, $offset);
+               $isManipulation = \OC_DB::isManipulation($sql);
+               $statement = $this->connection->prepare($sql, $limit, $offset);
+               return new \OC_DB_StatementWrapper($statement, $isManipulation);
        }