summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-10-20 15:09:00 +0200
committerRobin Appelman <icewind@owncloud.com>2014-10-22 12:29:53 +0200
commitd83b11d34acf5baf0d7c8618aa3ca21d501d8cf7 (patch)
tree682973b350f5736effe9fa8ca81cc55cd2ce5c97 /lib
parente6f6cdd19fe2b9726fd85a684b9f624e509e3994 (diff)
downloadnextcloud-server-d83b11d34acf5baf0d7c8618aa3ca21d501d8cf7.tar.gz
nextcloud-server-d83b11d34acf5baf0d7c8618aa3ca21d501d8cf7.zip
Use statements wrapper in \OCP\IDB
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appframework/db/db.php4
1 files changed, 3 insertions, 1 deletions
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);
}