aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-03-25 17:54:10 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-03-27 19:13:14 +0100
commit5fc276602aa2aaf575776dbbb6b7b8626357cd8a (patch)
tree411fd6027ba8bc846425e13495780632db18379a /lib
parent18554059a4be6540c4c16e8bbc6778b734b3371b (diff)
downloadnextcloud-server-5fc276602aa2aaf575776dbbb6b7b8626357cd8a.tar.gz
nextcloud-server-5fc276602aa2aaf575776dbbb6b7b8626357cd8a.zip
Change LIMIT in DB query respectively remove where not necessary
Diffstat (limited to 'lib')
-rw-r--r--lib/files/cache/upgrade.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/files/cache/upgrade.php b/lib/files/cache/upgrade.php
index 47184615b46..ab64a65a285 100644
--- a/lib/files/cache/upgrade.php
+++ b/lib/files/cache/upgrade.php
@@ -176,7 +176,7 @@ class Upgrade {
WHERE `propertyname` = \'{DAV:}getetag\'
AND `propertypath` = ?
AND `userid` = ?
- LIMIT 1');
+ ', 1);
}
$result = $queryGetETag->execute(array($legacyPath, $user));
$etag = $result->fetchOne();
@@ -188,7 +188,6 @@ class Upgrade {
WHERE `propertyname` = \'{DAV:}getetag\'
AND `propertypath` = ?
AND `userid` = ?
- LIMIT 1
');
}