From: Arthur Schiwon Date: Mon, 25 Mar 2013 16:54:10 +0000 (+0100) Subject: Change LIMIT in DB query respectively remove where not necessary X-Git-Tag: v6.0.0alpha2~999 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5fc276602aa2aaf575776dbbb6b7b8626357cd8a;p=nextcloud-server.git Change LIMIT in DB query respectively remove where not necessary --- 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 '); }