diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-14 21:59:24 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-14 21:59:24 +0100 |
commit | 78a3625ddfc67e7e6743a2ff6fd31e1566b174c8 (patch) | |
tree | 620da3a4d8f9e0560f41f8f43f82183f65ccba29 /lib/files | |
parent | bcbf2e667badaae382911f9304d0811b17167af6 (diff) | |
download | nextcloud-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.php | 6 |
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; |