diff options
author | ringmaster <epithet@gmail.com> | 2013-11-14 09:41:55 -0500 |
---|---|---|
committer | ringmaster <epithet@gmail.com> | 2013-11-14 09:41:55 -0500 |
commit | ca675d7b085f2c13a51dcd7bdbf05f8f1e20921d (patch) | |
tree | 494ddcaf26c5de22ddd4a9ba3dc3b1611e5e272e /lib | |
parent | 19e03ef77f873d540626c4f7f251dd1f834bfaf0 (diff) | |
download | nextcloud-server-ca675d7b085f2c13a51dcd7bdbf05f8f1e20921d.tar.gz nextcloud-server-ca675d7b085f2c13a51dcd7bdbf05f8f1e20921d.zip |
Alias the aggregate columns so SQL Server doesn't combine them.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/cache/cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index 8c34fa58540..ac50a988e32 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -507,7 +507,7 @@ class Cache { $entry = $this->get($path); if ($entry && $entry['mimetype'] === 'httpd/unix-directory') { $id = $entry['fileid']; - $sql = 'SELECT SUM(`size`), MIN(`size`) FROM `*PREFIX*filecache` '. + $sql = 'SELECT SUM(`size`) AS f1, MIN(`size`) AS f2 FROM `*PREFIX*filecache` '. 'WHERE `parent` = ? AND `storage` = ?'; $result = \OC_DB::executeAudited($sql, array($id, $this->getNumericStorageId())); if ($row = $result->fetchRow()) { |