mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Change LIMIT in DB query respectively remove where not necessary
This commit is contained in:
parent
ad62d89f2b
commit
19a65f6c3f
1 changed files with 1 additions and 2 deletions
3
lib/files/cache/upgrade.php
vendored
3
lib/files/cache/upgrade.php
vendored
|
|
@ -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
|
||||
');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue