if ($row = $result->fetchRow()) {
$this->numericId = $row['numeric_id'];
} else {
- $result = \OC_DB::executeAudited(
+ \OC_DB::executeAudited(
'INSERT INTO `*PREFIX*storages`(`id`) VALUES(?)',
array($this->storageId)
);
if ($row = $result->fetchRow()) {
$this->mimetypeIds[$mime] = $row['id'];
} else {
- $result = \OC_DB::executeAudited(
+ \OC_DB::executeAudited(
'INSERT INTO `*PREFIX*mimetypes`(`mimetype`) VALUES(?)',
array($mime)
);
$this->remove($child['path']);
}
}
- $result = \OC_DB::executeAudited('
+ \OC_DB::executeAudited('
DELETE FROM `*PREFIX*filecache` WHERE `fileid` = ?',
array($entry['fileid'])
);
foreach ($childEntries as $child) {
$targetPath = $target . substr($child['path'], $sourceLength);
- $result = \OC_DB::executeAudited($query,
+ \OC_DB::executeAudited($query,
array(
$targetPath,
md5($targetPath),
}
}
- $result = \OC_DB::executeAudited('
+ \OC_DB::executeAudited('
UPDATE `*PREFIX*filecache`
SET `path` = ?, `path_hash` = ?, `name` = ?, `parent` =?
WHERE `fileid` = ?',
* remove all entries for files that are stored on the storage from the cache
*/
public function clear() {
- $result = \OC_DB::executeAudited('
+ \OC_DB::executeAudited('
DELETE FROM `*PREFIX*filecache` WHERE `storage` = ?',
array($this->numericId)
);
- $result = \OC_DB::executeAudited('
+ \OC_DB::executeAudited('
DELETE FROM `*PREFIX*storages` WHERE `id` = ?',
array($this->storageId)
);
WHERE ' . $where . ' AND `storage` = ?',
array($mimetype, $this->numericId)
);
- $result = $query->execute(array($mimetype, $this->numericId));
$files = array();
while ($row = $result->fetchRow()) {