aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-14 21:59:24 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-14 21:59:24 +0100
commit78a3625ddfc67e7e6743a2ff6fd31e1566b174c8 (patch)
tree620da3a4d8f9e0560f41f8f43f82183f65ccba29 /lib/files
parentbcbf2e667badaae382911f9304d0811b17167af6 (diff)
downloadnextcloud-server-78a3625ddfc67e7e6743a2ff6fd31e1566b174c8.tar.gz
nextcloud-server-78a3625ddfc67e7e6743a2ff6fd31e1566b174c8.zip
final adoptions for mssql connectivity
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/cache/cache.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/files/cache/cache.php b/lib/files/cache/cache.php
index dcb6e8fd39a..b61f1de4483 100644
--- a/lib/files/cache/cache.php
+++ b/lib/files/cache/cache.php
@@ -56,7 +56,7 @@ class Cache {
} else {
$query = \OC_DB::prepare('INSERT INTO `*PREFIX*storages`(`id`) VALUES(?)');
$query->execute(array($this->storageId));
- $this->numericId = \OC_DB::insertid('*PREFIX*filecache');
+ $this->numericId = \OC_DB::insertid('*PREFIX*storages');
}
}
@@ -493,8 +493,8 @@ class Cache {
*/
public function getIncomplete() {
$query = \OC_DB::prepare('SELECT `path` FROM `*PREFIX*filecache` WHERE `storage` = ? AND `size` = -1 ORDER BY `fileid` DESC LIMIT 1');
- $query->execute(array($this->numericId));
- if ($row = $query->fetchRow()) {
+ $result = $query->execute(array($this->numericId));
+ if ($row = $result->fetchRow()) {
return $row['path'];
} else {
return false;