Use statements wrapper in \OCP\IDB
This commit is contained in:
parent
e6f6cdd19f
commit
d83b11d34a
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue