From: Robin Appelman Date: Mon, 20 Oct 2014 13:09:00 +0000 (+0200) Subject: Use statements wrapper in \OCP\IDB X-Git-Tag: v8.0.0alpha1~453^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d83b11d34acf5baf0d7c8618aa3ca21d501d8cf7;p=nextcloud-server.git Use statements wrapper in \OCP\IDB --- diff --git a/lib/private/appframework/db/db.php b/lib/private/appframework/db/db.php index 91572ad9e5a..fb30505d05a 100644 --- a/lib/private/appframework/db/db.php +++ b/lib/private/appframework/db/db.php @@ -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); }