diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-03-25 17:54:10 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-03-25 17:54:10 +0100 |
commit | 19a65f6c3f41b6a62513232fab4ce24d95d0b036 (patch) | |
tree | 4028c56a67a0509b918b16cf10c56d777a3602c1 | |
parent | ad62d89f2b32a5c55b78a2c219b94c10eb2ca021 (diff) | |
download | nextcloud-server-19a65f6c3f41b6a62513232fab4ce24d95d0b036.tar.gz nextcloud-server-19a65f6c3f41b6a62513232fab4ce24d95d0b036.zip |
Change LIMIT in DB query respectively remove where not necessary
-rw-r--r-- | lib/files/cache/upgrade.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/files/cache/upgrade.php b/lib/files/cache/upgrade.php index 8cdee7167ea..07ae3ab8d84 100644 --- a/lib/files/cache/upgrade.php +++ b/lib/files/cache/upgrade.php @@ -169,7 +169,7 @@ class Upgrade { WHERE `propertyname` = \'{DAV:}getetag\' AND `propertypath` = ? AND `userid` = ? - LIMIT 1'); + ', 1); } $result = $queryGetETag->execute(array($legacyPath, $user)); $etag = $result->fetchOne(); @@ -181,7 +181,6 @@ class Upgrade { WHERE `propertyname` = \'{DAV:}getetag\' AND `propertypath` = ? AND `userid` = ? - LIMIT 1 '); } |