Use statements wrapper in \OCP\IDB

This commit is contained in:
Robin Appelman 2014-10-20 15:09:00 +02:00
parent e6f6cdd19f
commit d83b11d34a
1 changed files with 3 additions and 1 deletions

View 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);
}